MixedRealityToolkit.IsServiceRegistered<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.
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)
override this.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.