Dela via


AsymmetricKey.PublicKey Property

Gets the public key for the asymmetric key.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property PublicKey As Byte()
    Get
'Usage
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[]

Property Value

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