共用方式為


DotNetObjectReference.Create<TValue>(TValue) 方法

定義

建立 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)

類型參數

TValue

參數

value
TValue

要追蹤的參考型別。

傳回

DotNetObjectReference<TValue> 的執行個體。

適用於