This documentation is archived and is not being maintained.

SendActivity.ServiceOperationInfo Property

Defines the contract and operation of the service that the SendActivity activity communicates with.

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

public TypedOperationInfo ServiceOperationInfo { get; set; }

Property Value

Type: System.Workflow.Activities.TypedOperationInfo
A TypedOperationInfo object that contains the contract name, the contract type, the operation name, (which may be distinct from the actual method name), whether the operation is a one-way operation, and method information including parameters about the operation.

The SendActivity activity always refers to an existing contract and its defined operations. There is no provision that allows a SendActivity activity to define a contract itself.

The following example shows how to access the ServiceOperationInfo property. This example was adapted from the Conversations SDK sample.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5