TurnState.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
| Name | Description |
|---|---|
| Set<T>(T) |
Sets a typed state object, replacing any existing instance of the same type. |
| Set<T>(String, T) |
Sets a value by key. |
Set<T>(T)
Sets a typed state object, replacing any existing instance of the same type.
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
Parameters
- value
- T
Applies to
Set<T>(String, T)
Sets a value by key.
public void Set<T>(string key, T value);
member this.Set : string * 'T -> unit
Public Sub Set(Of T) (key As String, value As T)
Type Parameters
- T
Parameters
- key
- String
- value
- T