Database.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 オブジェクトの値。データベースのマスター キーは、サービス マスター キーによって暗号化できます。

使用例

データベース オブジェクトでの作業

関連項目

参照

Database クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

暗号化の使用

データベースの作成、変更、および削除

CREATE DATABASE (Transact-SQL)