SecurityTokenRequirement.KeySize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the required size of the key associated with a security token.
public:
property int KeySize { int get(); void set(int value); };
public int KeySize { get; set; }
member this.KeySize : int with get, set
Public Property KeySize As Integer
Property Value
The size of the key, in bits, associated with a security token. The default value is 0.
Exceptions
The KeySize property is set to a value less than 0.
Remarks
The value of the KeySize property can also be accessed by getting the Properties property, which is a collection of property values. The value of the KeySize property is stored at the index matching the value of the KeySizeProperty property.