GetService Method
Collapse the table of content
Expand the table of content

ExternalDataExchangeService.GetService Method (Type)


Gets the service implementation of the specified interface type, if the service is available.

Namespace:   System.Workflow.Activities
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

public virtual object GetService(
	Type serviceType


Type: System.Type

The Type of the interface implemented by the service to retrieve.

Return Value

Type: System.Object

An object that implements the requested service, or null (Nothing in Visual Basic) if the service cannot be resolved.

Exception Condition

service is a null reference (Nothing).


The service is not registered with the runtime.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft