TurnContextStateCollection.Set Method

Definition

Overloads

Set<T>(T)

Set a value to the turn's context.

Set<T>(String, T)

Set a value to the turn's context.

Set<T>(T)

Set a value to the turn's context.

public void Set<T> (T value) where T : class;
member this.Set : 'T -> unit (requires 'T : null)
Public Sub Set(Of T As Class) (value As T)

Type Parameters

T

The type of the object.

Parameters

value
T

The value to add.

Exceptions

valueis null.

Applies to

Set<T>(String, T)

Set a value to the turn's context.

public void Set<T> (string key, T value) where T : class;
member this.Set : string * 'T -> unit (requires 'T : null)
Public Sub Set(Of T As Class) (key As String, value As T)

Type Parameters

T

The type of the object.

Parameters

key
String

The name of the object.

value
T

The value to add.

Exceptions

key or valueis null.

Applies to