編輯

共用方式為


SecurityTokenRequirement.KeySize Property

Definition

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.

Applies to

See also