編輯

共用方式為


MixedRealityToolkit.GetServices<T>(String) Method

Definition

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.

Implements

Applies to