IMixedRealityServiceRegistrar.IsServiceRegistered<T>(String) Method

Definition

Checks to see if a service of the specified type has been registered.

public bool IsServiceRegistered<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
abstract member IsServiceRegistered : string -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Function IsServiceRegistered(Of T As IMixedRealityService) (Optional name As String = Nothing) As Boolean

Type Parameters

T

The interface type of the service (ex: IMixedRealityBoundarySystem).

Parameters

name
String

The name of the service.

Returns

True if the service is registered, false otherwise.

Applies to