共用方式為


Certificate.PrivateKeyEncryptionType 屬性

Gets the encryption type of the private key for the certificate.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property PrivateKeyEncryptionType As PrivateKeyEncryptionType 
    Get
'用途
Dim instance As Certificate 
Dim value As PrivateKeyEncryptionType 

value = instance.PrivateKeyEncryptionType
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public PrivateKeyEncryptionType PrivateKeyEncryptionType { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property PrivateKeyEncryptionType PrivateKeyEncryptionType {
    PrivateKeyEncryptionType get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PrivateKeyEncryptionType : PrivateKeyEncryptionType
function get PrivateKeyEncryptionType () : PrivateKeyEncryptionType

屬性值

型別:Microsoft.SqlServer.Management.Smo.PrivateKeyEncryptionType
A PrivateKeyEncryptionType object value that specifies the encryption type used by the private key.

範例

使用加密

請參閱

參考

Certificate 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE CERTIFICATE (Transact-SQL)