Edit

Share via


IMixedRealityDataProviderAccess.GetDataProvider Method

Definition

Overloads

GetDataProvider(String)

Get the data provider that is registered under the specified name.

GetDataProvider<T>(String)

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

GetDataProvider(String)

Get the data provider that is registered under the specified name.

public:
 Microsoft::MixedReality::Toolkit::IMixedRealityDataProvider ^ GetDataProvider(System::String ^ name);
public Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider GetDataProvider (string name);
abstract member GetDataProvider : string -> Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider
Public Function GetDataProvider (name As String) As IMixedRealityDataProvider

Parameters

name
String

The friendly name of the data provider.

Returns

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

Remarks

If more than one data provider is registered under the specified name, the first will be returned.

Applies to

GetDataProvider<T>(String)

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

public T GetDataProvider<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider;
abstract member GetDataProvider : string -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider)
Public 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.

Remarks

If more than one data provider is registered under the specified name, the first will be returned.

Applies to