次の方法で共有


AifServiceContainer.GetService<T> Method

Definition

Gets the service.

public:
generic <typename T>
 where T : class T GetService();
public T GetService<T> () where T : class;
member this.GetService : unit -> 'T (requires 'T : null)
Public Function GetService(Of T As Class) () As T

Type Parameters

T

Specifies the type of service.

Returns

T

The object of type T

Applies to