MixedRealityToolkit.UnregisterService 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.
Overloads
UnregisterService<T>(String) |
Unregisters a service of the specified type. |
UnregisterService<T>(T) |
Unregisters a service. |
UnregisterService<T>(String)
Unregisters a service of the specified type.
public bool UnregisterService<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
abstract member UnregisterService : string -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
override this.UnregisterService : string -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Function UnregisterService(Of T As IMixedRealityService) (Optional name As String = Nothing) As Boolean
Type Parameters
- T
The interface type of the service to be unregistered (ex: IMixedRealityBoundarySystem).
Parameters
- name
- String
The name of the service to unregister.
Returns
True if the service was successfully unregistered, false otherwise.
Implements
Applies to
UnregisterService<T>(T)
Unregisters a service.
public:
generic <typename T>
where T : Microsoft::MixedReality::Toolkit::IMixedRealityService virtual bool UnregisterService(T serviceInstance);
public bool UnregisterService<T> (T serviceInstance) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
abstract member UnregisterService : 'T -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
override this.UnregisterService : 'T -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Function UnregisterService(Of T As IMixedRealityService) (serviceInstance As T) As Boolean
Type Parameters
- T
The interface type of the service to be unregistered (ex: IMixedRealityBoundarySystem).
Parameters
- serviceInstance
- T
Returns
True if the service was successfully unregistered, false otherwise.