Метод ServerRole.AddMembershipToRole
Adds a role to the server role membership.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub AddMembershipToRole ( _
roleName As String _
)
'Применение
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
)
Параметры
- roleName
Тип: System.String
A String value that specifies the role that is to be added to the server role membership.