DotNetObjectReference.Create<TValue>(TValue) 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.
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>.