共用方式為


AddServiceKeyEncryption 方法

Adds service key encryption to the master key.

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

語法

'宣告
Public Sub AddServiceKeyEncryption
'用途
Dim instance As MasterKey

instance.AddServiceKeyEncryption()
public void AddServiceKeyEncryption()
public:
void AddServiceKeyEncryption()
member AddServiceKeyEncryption : unit -> unit 
public function AddServiceKeyEncryption()

備註

The IsEncryptedByServer property specifies whether the master key is encrypted by the service master key or by using a password.

範例

呼叫方法