AddPasswordEncryption 方法
Adds password encryption to the master key.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub AddPasswordEncryption ( _
password As String _
)
'用途
Dim instance As MasterKey
Dim password As String
instance.AddPasswordEncryption(password)
public void AddPasswordEncryption(
string password
)
public:
void AddPasswordEncryption(
String^ password
)
member AddPasswordEncryption :
password:string -> unit
public function AddPasswordEncryption(
password : String
)
參數
- password
型別:System. . :: . .String
A String value that specifies the password with which to encrypt and decrypt the master key.
備註
The IsEncryptedByServer property specifies whether the master key is encrypted by the service master key or by using a password.