Share via


AsymmetricKey.KeyLength Property

Gets the length of 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 KeyLength As Integer
    Get
'Usage
Dim instance As AsymmetricKey
Dim value As Integer

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

Property Value

Type: System.Int32
An Int32 object value that specifies the length of the asymmetric key.