Partager via


IDTSApplication100.GetPackageRoles(String, String, String, String) Method

Definition

Returns the database roles that have read access and write access to the package. Database roles apply only to packages stored in the SQL Server msdb database.

public:
 void GetPackageRoles(System::String ^ bstrServerName, System::String ^ bstrPackagePath, [Runtime::InteropServices::Out] System::String ^ % pbstrReaderRole, [Runtime::InteropServices::Out] System::String ^ % pbstrWriterRole);
[System.Runtime.InteropServices.DispId(64)]
public void GetPackageRoles (string bstrServerName, string bstrPackagePath, out string pbstrReaderRole, out string pbstrWriterRole);
[<System.Runtime.InteropServices.DispId(64)>]
abstract member GetPackageRoles : string * string * string * string -> unit
Public Sub GetPackageRoles (bstrServerName As String, bstrPackagePath As String, ByRef pbstrReaderRole As String, ByRef pbstrWriterRole As String)

Parameters

bstrServerName
String

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

bstrPackagePath
String

Specifies the name and path of the package.

pbstrReaderRole
String

When this method returns, contains the roles with read access. This parameter is passed uninitialized.

pbstrWriterRole
String

When this method returns, contains the roles with write access. This parameter is passed uninitialized.

Attributes

Applies to