ReceiveParametersContent ReceiveParametersContent ReceiveParametersContent 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
type ReceiveParametersContent = class
    inherit ReceiveContent
Public NotInheritable Class ReceiveParametersContent
Inherits ReceiveContent
Inheritance
ReceiveParametersContentReceiveParametersContentReceiveParametersContentReceiveParametersContent
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() ReceiveParametersContent() ReceiveParametersContent() ReceiveParametersContent()

Creates a new instance of the ReceiveParametersContent class.

ReceiveParametersContent(IDictionary<String,OutArgument>) ReceiveParametersContent(IDictionary<String,OutArgument>) ReceiveParametersContent(IDictionary<String,OutArgument>) ReceiveParametersContent(IDictionary<String,OutArgument>)

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

Properties

Parameters Parameters Parameters Parameters

Modifies the parameters collection.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to