AddMember 方法

Adds a login to the fixed server role membership.

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

语法

声明
Public Sub AddMember ( _
    loginname As String _
)
用法
Dim instance As ServerRole
Dim loginname As String

instance.AddMember(loginname)
public void AddMember(
    string loginname
)
public:
void AddMember(
    String^ loginname
)
member AddMember : 
        loginname:string -> unit 
public function AddMember(
    loginname : String
)

参数

  • loginname
    类型:System. . :: . .String
    A String value that specifies the login that is to be added to the fixed server role membership.