Database.MasterKey Database.MasterKey Database.MasterKey Property

Definition

Gets the master key that is used to encrypt the private keys of certificates.

public:
 property Microsoft::SqlServer::Management::Smo::MasterKey ^ MasterKey { Microsoft::SqlServer::Management::Smo::MasterKey ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcObject(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcObjectRelationship.Object, Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcObjectCardinality.ZeroToOne)]
public Microsoft.SqlServer.Management.Smo.MasterKey MasterKey { get; }
Public ReadOnly Property MasterKey As MasterKey
Property Value

A MasterKey object value that specifies the master key that is used to encrypt the private keys of certificates.

The database master key can be encrypted by the service master key.

Examples

Working with Database Objects

Applies to