ApplicationClass.SetPackageRoles(String, String, String, String) Method

Definition

Sets the database roles that have read access and write access to the package.

public:
 virtual void SetPackageRoles(System::String ^ bstrServerName, System::String ^ bstrPackagePath, System::String ^ bstrReaderRole, System::String ^ bstrWriterRole) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::SetPackageRoles;
public:
 virtual void SetPackageRoles(System::String ^ bstrServerName, System::String ^ bstrPackagePath, System::String ^ bstrReaderRole, System::String ^ bstrWriterRole) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::SetPackageRoles;
[System.Runtime.InteropServices.DispId(63)]
public virtual void SetPackageRoles (string bstrServerName, string bstrPackagePath, string bstrReaderRole, string bstrWriterRole);
[<System.Runtime.InteropServices.DispId(63)>]
abstract member SetPackageRoles : string * string * string * string -> unit
override this.SetPackageRoles : string * string * string * string -> unit
Public Overridable Sub SetPackageRoles (bstrServerName As String, bstrPackagePath As String, bstrReaderRole As String, bstrWriterRole As String)

Parameters

bstrServerName
String

Specifies the name and instance of the server that contains the package.

bstrPackagePath
String

Specifies the name of the package.

bstrReaderRole
String

Specifies a role to have read access.

bstrWriterRole
String

Specifies a role to have write access.

Implements

Attributes

Applies to