ActivityExecutionContext.GetService Método

Definición

Sobrecargas

GetService(Type)

Devuelve un servicio del tipo especificado.

GetService<T>()

Devuelve un proveedor de servicios del Type especificado.

GetService(Type)

Devuelve un servicio del tipo especificado.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

Parámetros

serviceType
Type

El Type del servicio.

Devoluciones

La clase Object de servicio de la clase Type especificada.

Implementaciones

Excepciones

Se aplica a

GetService<T>()

Devuelve un proveedor de servicios del Type especificado.

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

Parámetros de tipo

T

El tipo especificado para el cual se va a devolver el proveedor.

Devoluciones

T

Un proveedor de servicios Object del Type especificado.

Excepciones

Se aplica a