共用方式為


ApplicationClass.GetPackageRoles 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

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

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Public Overridable Sub GetPackageRoles ( _
    bstrServerName As String, _
    bstrPackagePath As String, _
    <OutAttribute> ByRef pbstrReaderRole As String, _
    <OutAttribute> ByRef pbstrWriterRole As String _
)
'用途
Dim instance As ApplicationClass 
Dim bstrServerName As String 
Dim bstrPackagePath As String 
Dim pbstrReaderRole As String 
Dim pbstrWriterRole As String

instance.GetPackageRoles(bstrServerName, _
    bstrPackagePath, pbstrReaderRole, _
    pbstrWriterRole)
public virtual void GetPackageRoles(
    string bstrServerName,
    string bstrPackagePath,
    out string pbstrReaderRole,
    out string pbstrWriterRole
)
public:
virtual void GetPackageRoles(
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrPackagePath, 
    [OutAttribute] String^% pbstrReaderRole, 
    [OutAttribute] String^% pbstrWriterRole
)
abstract GetPackageRoles : 
        bstrServerName:string * 
        bstrPackagePath:string * 
        pbstrReaderRole:string byref * 
        pbstrWriterRole:string byref -> unit  
override GetPackageRoles : 
        bstrServerName:string * 
        bstrPackagePath:string * 
        pbstrReaderRole:string byref * 
        pbstrWriterRole:string byref -> unit
public function GetPackageRoles(
    bstrServerName : String, 
    bstrPackagePath : String, 
    pbstrReaderRole : String, 
    pbstrWriterRole : String
)

參數

  • bstrServerName
    型別:System.String
    Specifies the name and instance of the server that contains the package.
  • bstrPackagePath
    型別:System.String
    Specifies the name of the package.
  • pbstrReaderRole
    型別:System.String%
    When this method returns, contains the roles with read access. This parameter is passed uninitialized.
  • pbstrWriterRole
    型別:System.String%
    When this method returns, contains the roles with write access. This parameter is passed uninitialized.

實作

IDTSApplication100.GetPackageRoles(String, String, String%, String%)

請參閱

參考

ApplicationClass 類別

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間