ServerRole.AddMember-Methode
Adds a login to the fixed server role membership.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub AddMember ( _
memberName As String _
)
'Usage
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
)
Parameter
- memberName
Typ: System.String
A String value that specifies the login that is to be added to the fixed server role membership.
Beispiele
Verwalten von Benutzern, Rollen und Anmeldungen
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo-Namespace