ApplicationClass.SetPackageRoles 方法

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

Sets 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 SetPackageRoles ( _
    bstrServerName As String, _
    bstrPackagePath As String, _
    bstrReaderRole As String, _
    bstrWriterRole As String _
)
用法
Dim instance As ApplicationClass 
Dim bstrServerName As String 
Dim bstrPackagePath As String 
Dim bstrReaderRole As String 
Dim bstrWriterRole As String

instance.SetPackageRoles(bstrServerName, _
    bstrPackagePath, bstrReaderRole, _
    bstrWriterRole)
public virtual void SetPackageRoles(
    string bstrServerName,
    string bstrPackagePath,
    string bstrReaderRole,
    string bstrWriterRole
)
public:
virtual void SetPackageRoles(
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrPackagePath, 
    [InAttribute] String^ bstrReaderRole, 
    [InAttribute] String^ bstrWriterRole
)
abstract SetPackageRoles : 
        bstrServerName:string * 
        bstrPackagePath:string * 
        bstrReaderRole:string * 
        bstrWriterRole:string -> unit  
override SetPackageRoles : 
        bstrServerName:string * 
        bstrPackagePath:string * 
        bstrReaderRole:string * 
        bstrWriterRole:string -> unit
public function SetPackageRoles(
    bstrServerName : String, 
    bstrPackagePath : String, 
    bstrReaderRole : String, 
    bstrWriterRole : 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.
  • bstrReaderRole
    类型:System.String
    Specifies a role to have read access.
  • bstrWriterRole
    类型:System.String
    Specifies a role to have write access.

实现

IDTSApplication100.SetPackageRoles(String, String, String, String)

请参阅

参考

ApplicationClass 类

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