Dela via


MasterKey.AddServiceKeyEncryption Method

Adds service key encryption to the master key.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub AddServiceKeyEncryption
'Usage
Dim instance As MasterKey

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

Remarks

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

Examples

Calling Methods