User.MakeContained 方法
Converts a login mapped user to a contained user with password using the sys.sp_copy_password_to_user stored procedure.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub MakeContained ( _
copyLoginName As Boolean, _
disableLogin As Boolean _
)
'用途
Dim instance As User
Dim copyLoginName As Boolean
Dim disableLogin As Boolean
instance.MakeContained(copyLoginName, _
disableLogin)
public void MakeContained(
bool copyLoginName,
bool disableLogin
)
public:
void MakeContained(
bool copyLoginName,
bool disableLogin
)
member MakeContained :
copyLoginName:bool *
disableLogin:bool -> unit
public function MakeContained(
copyLoginName : boolean,
disableLogin : boolean
)
參數
- copyLoginName
型別:System.Boolean
Copies the earlier mapped login name to the contained user.
- disableLogin
型別:System.Boolean
Disables the earlier mapped login.