AddToRole 方法

Adds the login account to a SQL Server role.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub AddToRole ( _
    role As String _
)
用法
Dim instance As Login
Dim role As String

instance.AddToRole(role)
public void AddToRole(
    string role
)
public:
void AddToRole(
    String^ role
)
member AddToRole : 
        role:string -> unit 
public function AddToRole(
    role : String
)

参数