共用方式為


ChangePassword 方法 (SecureString)

Modifies the password of the application role.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub ChangePassword ( _
    password As SecureString _
)
'用途
Dim instance As ApplicationRole
Dim password As SecureString

instance.ChangePassword(password)
public void ChangePassword(
    SecureString password
)
public:
void ChangePassword(
    SecureString^ password
)
member ChangePassword : 
        password:SecureString -> unit 
public function ChangePassword(
    password : SecureString
)

參數

備註

For security reasons, the application role password should be modified before the application role is granted any privileges.

範例

呼叫方法