編集

次の方法で共有


MixedRealitySpatialAwarenessSystem.GetDataProvider<T>(String) Method

Definition

Get the data provider that is registered under the specified name (optional) and matching the specified type.

public override T GetDataProvider<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider;
override this.GetDataProvider : string -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider)
Public Overrides Function GetDataProvider(Of T As IMixedRealityDataProvider) (Optional name As String = Nothing) As T

Type Parameters

T

The desired data provider type.

Parameters

name
String

The friendly name of the data provider.

Returns

T

The requested data provider, or null if one cannot be found.

Applies to