編集

次の方法で共有


MixedRealityServiceRegistry.RemoveService Method

Definition

Overloads

RemoveService<T>(String)

Removes an IMixedRealityService instance from the registry.

RemoveService<T>(T)

Removes an IMixedRealityService instance from the registry.

RemoveService<T>(T, IMixedRealityServiceRegistrar)

Removes an IMixedRealityService instance from the registry.

RemoveService<T>(String)

Removes an IMixedRealityService instance from the registry.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::IMixedRealityService static bool RemoveService(System::String ^ name);
public static bool RemoveService<T> (string name) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
static member RemoveService : string -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Shared Function RemoveService(Of T As IMixedRealityService) (name As String) As Boolean

Type Parameters

T

The interface type of the service being removed.

Parameters

name
String

The friendly name of the service to remove.

Returns

True if the service was successfully removed, false otherwise.

Applies to

RemoveService<T>(T)

Removes an IMixedRealityService instance from the registry.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::IMixedRealityService static bool RemoveService(T serviceInstance);
public static bool RemoveService<T> (T serviceInstance) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
static member RemoveService : 'T -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Shared Function RemoveService(Of T As IMixedRealityService) (serviceInstance As T) As Boolean

Type Parameters

T

The interface type of the service being removed.

Parameters

serviceInstance
T

Instance of the service to remove.

Returns

True if the service was successfully removed, false otherwise.

Applies to

RemoveService<T>(T, IMixedRealityServiceRegistrar)

Removes an IMixedRealityService instance from the registry.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::IMixedRealityService static bool RemoveService(T serviceInstance, Microsoft::MixedReality::Toolkit::IMixedRealityServiceRegistrar ^ registrar);
public static bool RemoveService<T> (T serviceInstance, Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar registrar) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
static member RemoveService : 'T * Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Public Shared Function RemoveService(Of T As IMixedRealityService) (serviceInstance As T, registrar As IMixedRealityServiceRegistrar) As Boolean

Type Parameters

T

The interface type of the service being removed.

Parameters

serviceInstance
T

Instance of the service to remove.

registrar
IMixedRealityServiceRegistrar

Instance of the registrar manages the service.

Returns

True if the service was successfully removed, false otherwise.

Applies to