WorkflowRuntimeEndpoint.GetService Method

Definition

Overloads

GetService(Type)

Gets the service object for the specified service type from the list of service objects.

GetService<T>()

Gets the service object that corresponds to the service type specified as a template parameter.

GetService(Type)

Gets the service object for the specified service type from the list of service objects.

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

Parameters

serviceType
Type

The type of the service whose object must retrieved from the list of objects.

Returns

The service object for the specified service type.

Applies to

GetService<T>()

Gets the service object that corresponds to the service type specified as a template parameter.

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

Type Parameters

T

The type of the service to get.

Returns

T

The service object that corresponds to the service type.

Applies to