BaseServiceManager.GetServices<T>(String) Method
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.
C#
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)
- T
The interface type of the service (ex: IMixedRealityBoundarySystem).
- name
- String
Friendly name of the service.
Read-only collection of the service instances, as the requested type.
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |