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
)

Parameters

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
ArgumentNullException

service is a null reference (Nothing).

InvalidOperationException

The service is not registered with the runtime.

.NET Framework
Available since 3.0
Return to top
Show: