共用方式為


AsymmetricKey.PublicKey 屬性

Gets the public key for the asymmetric key.

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

語法

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

value = instance.PublicKey
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public byte[] PublicKey { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property array<unsigned char>^ PublicKey {
    array<unsigned char>^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PublicKey : byte[]
function get PublicKey () : byte[]

屬性值

型別:array<System.Byte[]
A Uint8 array value that specifies the public key for the asymmetric key.

範例

設定屬性

請參閱

參考

AsymmetricKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE ASYMMETRIC KEY (Transact-SQL)