Container.HasService<T>(String) Method

Definition

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines whether the specified container has the named service.

C#
public bool HasService<T> (string name) where T : class;

Type Parameters

T

The type of the service to search for.

Parameters

name
String

The name of the service to search for.

Returns

Returns Boolean.

true if the specified container has the named service; otherwise, false.

Implements

Exceptions

The name parameter is a null reference (Nothing in Visual Basic) or empty.

Applies to

Product Versions
System Center SM SDK 2012, 2016