Database.MasterKey 属性

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

命名空间:  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
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.

示例

使用数据库对象

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用加密

创建、更改和删除数据库

CREATE DATABASE (Transact-SQL)