Partager via


Méthode ApplicationClass.GetPackageRoles

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly :  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntaxe

'Déclaration
Public Overridable Sub GetPackageRoles ( _
    bstrServerName As String, _
    bstrPackagePath As String, _
    <OutAttribute> ByRef pbstrReaderRole As String, _
    <OutAttribute> ByRef pbstrWriterRole As String _
)
'Utilisation
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
)

Paramètres

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

Implémente

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

Voir aussi

Référence

ApplicationClass Classe

Espace de noms Microsoft.SqlServer.Dts.Runtime.Wrapper