共用方式為


EnumKeyEncryptions 方法

Enumerates a list of the current set of key encryptions for the database master key.

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

語法

'宣告
Public Function EnumKeyEncryptions As DataTable
'用途
Dim instance As MasterKey
Dim returnValue As DataTable

returnValue = instance.EnumKeyEncryptions()
public DataTable EnumKeyEncryptions()
public:
DataTable^ EnumKeyEncryptions()
member EnumKeyEncryptions : unit -> DataTable 
public function EnumKeyEncryptions() : DataTable

傳回值

型別:System.Data. . :: . .DataTable
A DataTable system object value that contains the list of current key encryptions for the database master key. The table describes the different columns of the returned DataTable.

Column

Data type

Description

Urn

String

The URN string that specifies the referenced master key.

Thumbprint

array< Byte>[]()[][]

The thumbprint byte array that is associated with the master key. For more information, see sys.key_encryptions (Transact-SQL).

SymmetricKeyEncryptionType

String

The symmetric key encryption type. For more information, see SymmetricKeyEncryptionType class.

CryptProperty

array< Byte>[]()[][]

The byte array that describes the crypt property. For more information, see sys.key_encryptions (Transact-SQL).

範例

呼叫方法