Skip to content

IGetServices.HasService() method

Defined in

Type: IGetServices Namespace: ReactiveMarbles.Locator Assembly: ReactiveMarbles.Locator.dll

Applies to

net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0

Overloads

  • 1. bool HasService<T>()
  • 2. bool HasService<T>(string contract)

1. Overload

bool HasService<T>()

Summary: Determines whether the specified service type has service.

Type parameters

NameDescription
TThe type.

Returns: bool -- true if the specified service type has service; otherwise, false.

2. Overload

bool HasService<T>(string contract)

Summary: Determines whether the specified service type has service.

Type parameters

NameDescription
TThe type.

Parameters

NameTypeDescription
contractstringThe contract.

Returns: bool -- true if the specified service type has service; otherwise, false.