IContainer.GetService<T>(String) Method

Definition

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

Searches for and returns the specified service.

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

Type Parameters

T

The type of the service to search for.

Parameters

name
String

The name of the service to search for.

Returns

T

Returns {0}.

The service.

Applies to