WorkflowRuntimeEndpoint.GetService Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> objPublic Function GetService (serviceType As Type) As ObjectParameters
- 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 -> 'TPublic Function GetService(Of T) () As TType Parameters
- T
The type of the service to get.
Returns
The service object that corresponds to the service type.