Skip to content

AppLocator.UnregisterCurrent() method

Defined in

Type: AppLocator Namespace: Splat Assembly: Splat.Core.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public static void UnregisterCurrent<T>()

  2. public static void UnregisterCurrent<T>(string contract)

1. Overload

public static void UnregisterCurrent<T>()

View source (opens in a new tab)

Summary: Unregisters the current the value for the specified type and the optional contract.

Type parameters

NameDescription
TThe type of item to unregister.

2. Overload

public static void UnregisterCurrent<T>(string contract)

View source (opens in a new tab)

Summary: Unregisters the current the value for the specified type and the optional contract.

Type parameters

NameDescription
TThe type of item to unregister.

Parameters

NameTypeDescription
contractstring (opens in a new tab)A contract which indicates to only removed the item registered with this contract.