User.AddToRole 方法
Adds the database user to the specified role.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub AddToRole ( _
role As String _
)
'用途
Dim instance As User
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
)
參數
- role
型別:System.String
A String value that specifies a database role.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間