次の方法で共有


MasterKey プロパティ

証明書のプライベート キーの暗号化に使用されるマスター キーを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.ZeroToOne)> _
Public ReadOnly Property MasterKey As MasterKey
    Get
'使用
Dim instance As Database
Dim value As MasterKey

value = instance.MasterKey
[SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.ZeroToOne)]
public MasterKey MasterKey { get; }
[SfcObjectAttribute(SfcObjectRelationship::Object, SfcObjectCardinality::ZeroToOne)]
public:
property MasterKey^ MasterKey {
    MasterKey^ get ();
}
[<SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.ZeroToOne)>]
member MasterKey : MasterKey
function get MasterKey () : MasterKey

プロパティ値

型: Microsoft.SqlServer.Management.Smo. . :: . .MasterKey
証明書のプライベート キーの暗号化に使用されるマスター キーを示す、MasterKey オブジェクトの値。
データベースのマスター キーは、サービス マスター キーによって暗号化できます。