语言

ApplicationClass.GetPackageRoles(String, String, String, String) 方法

定义

返回对包拥有读权限和写权限的数据库角色。

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)

参数

bstrServerName
String

指定包含包的服务器名称和实例。

bstrPackagePath
String

指定包裹名称。

pbstrReaderRole
String

当该方法返回时,包含具有读取权限的角色。 此参数未初始化传递。

pbstrWriterRole
String

当该方法返回时,包含了带有写权限的角色。 此参数未初始化传递。

实现

属性

适用于