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

public:
generic <typename T>
 where T : class bool HasService(System::String ^ name);
public bool HasService<T> (string name) where T : class;
abstract member HasService : string -> bool (requires 'T : null)
Public Function HasService(Of T As Class) (name As String) As Boolean

Type Parameters

T

Parameters

name
String

The service name.

Returns

Returns Boolean.

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

Applies to