Export (0) Print
Expand All

ExternalDataExchangeService.AddService Method

Adds the specified service to the ExternalDataExchangeService.

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

public virtual void AddService(
	Object service
)

Parameters

service
Type: System.Object

An object that represents the service to add.

ExceptionCondition
ArgumentNullException

service is a null reference (Nothing in Visual Basic).

InvalidOperationException

The external run-time container was not found.

The following example shows how to add a service to an ExternalDataExchangeService object. This example is from the Ordering State Machine SDK sample. For more information, see Ordering State Machine Sample.

string IWorkflowCompilerOptionsService.RootNamespace
{
    get
    {
        return String.Empty;
    }
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft