User.ChangePassword 方法 (SecureString, SecureString)
Changes the user password.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub ChangePassword ( _
oldPassword As SecureString, _
newPassword As SecureString _
)
'用途
Dim instance As User
Dim oldPassword As SecureString
Dim newPassword As SecureString
instance.ChangePassword(oldPassword, _
newPassword)
public void ChangePassword(
SecureString oldPassword,
SecureString newPassword
)
public:
void ChangePassword(
SecureString^ oldPassword,
SecureString^ newPassword
)
member ChangePassword :
oldPassword:SecureString *
newPassword:SecureString -> unit
public function ChangePassword(
oldPassword : SecureString,
newPassword : SecureString
)
參數
- oldPassword
型別:System.Security.SecureString
The user’s exsisting password.
- newPassword
型別:System.Security.SecureString
The user’s new password.