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 对象值,该值指定用于对证书私钥进行加密的主密钥。
数据库主密钥可以由服务主密钥进行加密。