Login.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
)
參數
- role
型別:System.String
A String value that specifies the name of the role.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間