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.