Redigeeri

Jagamisviis:


ReceiveParametersContent Class

Definition

Enables a workflow service to receive data in the form of parameters .ReceiveParametersContent is interoperable with non-workflow WCF clients and services. The Parameters collection is similar to the argument declaration on a C# method signature. The Parameters collection cannot contain arguments marked with MessageContractAttribute, or of type Message. Use ReceiveMessageContent for these types of data. This is a sealed class.

public ref class ReceiveParametersContent sealed : System::ServiceModel::Activities::ReceiveContent
[System.Windows.Markup.ContentProperty("Parameters")]
public sealed class ReceiveParametersContent : System.ServiceModel.Activities.ReceiveContent
[<System.Windows.Markup.ContentProperty("Parameters")>]
type ReceiveParametersContent = class
    inherit ReceiveContent
Public NotInheritable Class ReceiveParametersContent
Inherits ReceiveContent
Inheritance
ReceiveParametersContent
Attributes

Examples

The following example shows how to use the ReceiveParametersContent class with a Receive activity.

Receive prescriptionRequest = new Receive
{
    DisplayName = "Request Perscription",
    OperationName = "GetBaseCost",
    ServiceContractName = Constants.PharmacyServiceContractName,
    CanCreateInstance = true,
    //CorrelatesWith = customerHandle,  -- add this line for explicit correlation
    CorrelatesOn = customerQuerySet,
    Content = new ReceiveParametersContent
    {
        Parameters = 
        {
            {"Customer",new OutArgument<Customer>(customer)},
            {"Drug",new OutArgument<string>(drug)},
        }
    }
};

Constructors

ReceiveParametersContent()

Creates a new instance of the ReceiveParametersContent class.

ReceiveParametersContent(IDictionary<String,OutArgument>)

Initializes a new instance of the ReceiveParametersContent class with the specified parameters.

Properties

Parameters

Modifies the parameters collection.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to