Editar

Compartir a través de


IMixedRealityServiceRegistrar.UnregisterService Method

Definition

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)
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.

Remarks

If the name argument is not specified, the first instance will be unregistered

Applies to

UnregisterService<T>(T)

Unregisters a service.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::IMixedRealityService 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)
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.

Applies to