Parameter.AsType<T> 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.
Cast ParameterType to T
. This method will return immediately if the underlying value is of type T
, otherwise it uses JsonSerializer to
convert its value to T
.
public T AsType<T> ();
member this.AsType : unit -> 'T
Public Function AsType(Of T) () As T
Type Parameters
- T
Returns
T