SymmetricKey.KeyLength Property

Gets the length of the symmetric key in bits.

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

Syntax

'Declaration
<SfcPropertyAttribute> _
Public ReadOnly Property KeyLength As Integer
    Get
'Usage
Dim instance As SymmetricKey
Dim value As Integer

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

Property Value

Type: System.Int32
An Int32 value that specifies the length of the symmetric key in bits.

Examples

Using Encryption