Método User.MakeContained
Converts a login mapped user to a contained user with password using the sys.sp_copy_password_to_user stored procedure.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Sub MakeContained ( _
copyLoginName As Boolean, _
disableLogin As Boolean _
)
'Uso
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
)
Parâmetros
- copyLoginName
Tipo: System.Boolean
Copies the earlier mapped login name to the contained user.
- disableLogin
Tipo: System.Boolean
Disables the earlier mapped login.