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

在此方法返回时,包含具有写入权限的角色。 此参数未经初始化即被传递。

实现

属性

适用于