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 物件值,這個值會指定為憑證的私密金鑰加密所用的主要金鑰。
資料庫主要金鑰可由服務主要金鑰加密。