System.Security.SecureString.Length Property

Gets the number of characters in the current secure string.

Syntax

public int Length { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The SecureString.Length property returns the number of char objects in this instance, not the number of Unicode characters. The reason is that a Unicode character might be represented by more than one char object.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0