MixedRealityToolkit.GetServices<T>(String) 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.
Gets the collection of the registered service instances matching the requested type.
public System.Collections.Generic.IReadOnlyList<T> GetServices<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
abstract member GetServices : string -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)> (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
override this.GetServices : string -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)> (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Function GetServices(Of T As IMixedRealityService) (Optional name As String = Nothing) As IReadOnlyList(Of T)
Type Parameters
- T
The interface type of the service (ex: IMixedRealityBoundarySystem).
Parameters
- name
- String
Friendly name of the service.
Returns
Read-only collection of the service instances, as the requested type.