TurnContextStateCollection.Set Method
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.
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
value
is 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 value
is null.