BaseDataProviderAccessCoreSystem.RegisterDataProvider Method

Definition

Overloads

RegisterDataProvider<T>(T)

Registers a service of the specified type.

RegisterDataProvider<T>(Type, SupportedPlatforms, Object[])
Obsolete.

Registers a data provider of the specified type.

RegisterDataProvider<T>(Type, String, SupportedPlatforms, Object[])

Registers a data provider of the specified type.

RegisterDataProvider<T>(T)

Registers a service of the specified type.

protected:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::IMixedRealityDataProvider bool RegisterDataProvider(T dataProviderInstance);
protected bool RegisterDataProvider<T> (T dataProviderInstance) where T : Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider;
member this.RegisterDataProvider : 'T -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider)
Protected Function RegisterDataProvider(Of T As IMixedRealityDataProvider) (dataProviderInstance As T) As Boolean

Type Parameters

T

The interface type of the data provider to be registered.

Parameters

dataProviderInstance
T

An instance of the data provider to be registered.

Returns

Boolean

Applies to

RegisterDataProvider<T>(Type, SupportedPlatforms, Object[])

Caution

RegisterDataProvider<T>(Type, SupportedPlatforms, param object[]) is obsolete and will be removed from a future version of MRTK\nPlease use RegisterDataProvider<T>(Type, string, SupportedPlatforms, params object[])

Registers a data provider of the specified type.

[System.Obsolete("RegisterDataProvider<T>(Type, SupportedPlatforms, param object[]) is obsolete and will be removed from a future version of MRTK\nPlease use RegisterDataProvider<T>(Type, string, SupportedPlatforms, params object[])")]
protected bool RegisterDataProvider<T> (Type concreteType, Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms supportedPlatforms = Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Android | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.IOS | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Lumin | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Web | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsUniversal, params object[] args) where T : Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider;
[<System.Obsolete("RegisterDataProvider<T>(Type, SupportedPlatforms, param object[]) is obsolete and will be removed from a future version of MRTK\nPlease use RegisterDataProvider<T>(Type, string, SupportedPlatforms, params object[])")>]
member this.RegisterDataProvider : Type * Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms * obj[] -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider)
Protected Function RegisterDataProvider(Of T As IMixedRealityDataProvider) (concreteType As Type, Optional supportedPlatforms As SupportedPlatforms = Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Android | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.IOS | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Lumin | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Web | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsUniversal, ParamArray args As Object()) As Boolean

Type Parameters

T

Parameters

concreteType
Type
supportedPlatforms
SupportedPlatforms
args
Object[]

Returns

Boolean
Attributes

Applies to

RegisterDataProvider<T>(Type, String, SupportedPlatforms, Object[])

Registers a data provider of the specified type.

protected bool RegisterDataProvider<T> (Type concreteType, string providerName, Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms supportedPlatforms = Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Android | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.IOS | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Lumin | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Web | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsUniversal, params object[] args) where T : Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider;
member this.RegisterDataProvider : Type * string * Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms * obj[] -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider)
Protected Function RegisterDataProvider(Of T As IMixedRealityDataProvider) (concreteType As Type, providerName As String, Optional supportedPlatforms As SupportedPlatforms = Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Android | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.IOS | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Lumin | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Web | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsUniversal, ParamArray args As Object()) As Boolean

Type Parameters

T

Parameters

concreteType
Type
providerName
String
supportedPlatforms
SupportedPlatforms
args
Object[]

Returns

Boolean

Applies to