DotNetObjectReference.Create<TValue>(TValue) Method

Definition

Creates a new instance of DotNetObjectReference<TValue>.

public:
generic <typename TValue>
 where TValue : class static Microsoft::JSInterop::DotNetObjectReference<TValue> ^ Create(TValue value);
public static Microsoft.JSInterop.DotNetObjectReference<TValue> Create<TValue> (TValue value) where TValue : class;
static member Create : 'Value -> Microsoft.JSInterop.DotNetObjectReference<'Value (requires 'Value : null)> (requires 'Value : null)
Public Shared Function Create(Of TValue As Class) (value As TValue) As DotNetObjectReference(Of TValue)

Type Parameters

TValue

Parameters

value
TValue

The reference type to track.

Returns

An instance of DotNetObjectReference<TValue>.

Applies to