Méthode ServerRole.AddMembershipToRole
Adds a role to the server role membership.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub AddMembershipToRole ( _
roleName As String _
)
'Utilisation
Dim instance As ServerRole
Dim roleName As String
instance.AddMembershipToRole(roleName)
public void AddMembershipToRole(
string roleName
)
public:
void AddMembershipToRole(
String^ roleName
)
member AddMembershipToRole :
roleName:string -> unit
public function AddMembershipToRole(
roleName : String
)
Paramètres
- roleName
Type : System.String
A String value that specifies the role that is to be added to the server role membership.