ServerRole.AddMember 方法
Adds a login to the fixed server role membership.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub AddMember ( _
memberName As String _
)
'用途
Dim instance As ServerRole
Dim memberName As String
instance.AddMember(memberName)
public void AddMember(
string memberName
)
public:
void AddMember(
String^ memberName
)
member AddMember :
memberName:string -> unit
public function AddMember(
memberName : String
)
參數
- memberName
型別:System.String
A String value that specifies the login that is to be added to the fixed server role membership.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間