共用方式為


SymmetricKey.EncryptionAlgorithm 屬性

Gets or sets the symmetric key encryption algorithm.

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

語法

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

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

屬性值

型別:Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm
A SymmetricKeyEncryptionAlgorithm object value that specifies the encryption algorithm used by the symmetric key.

範例

使用加密

請參閱

參考

SymmetricKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE SYMMETRIC KEY (Transact-SQL)