ExternalDataExchangeService::GetService Method (Type^)
.NET Framework (current version)
Gets the service implementation of the specified interface type, if the service is available.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
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
Available since 3.0
Show: