共用方式為


ApplicationClass.GetPackageRoles(String, String, String, String) Method

Definition

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

public:
 virtual void GetPackageRoles(System::String ^ bstrServerName, System::String ^ bstrPackagePath, [Runtime::InteropServices::Out] System::String ^ % pbstrReaderRole, [Runtime::InteropServices::Out] System::String ^ % pbstrWriterRole) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::GetPackageRoles;
public:
 virtual void GetPackageRoles(System::String ^ bstrServerName, System::String ^ bstrPackagePath, [Runtime::InteropServices::Out] System::String ^ % pbstrReaderRole, [Runtime::InteropServices::Out] System::String ^ % pbstrWriterRole) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::GetPackageRoles;
[System.Runtime.InteropServices.DispId(64)]
public virtual 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
override this.GetPackageRoles : string * string * string * string -> unit
Public Overridable 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 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.

Implements

Attributes

Applies to