MessageQueueTask.StringMessageToVariableName Property

Definition

Gets or sets the name of the variable to which the message contents are saved.

public:
 property System::String ^ StringMessageToVariableName { System::String ^ get(); void set(System::String ^ value); };
public string StringMessageToVariableName { get; set; }
member this.StringMessageToVariableName : string with get, set
Public Property StringMessageToVariableName As String

Property Value

A String that contains the variable to store the message in.

Implements

Examples

The following code example adds a variable to the package, and specifies that the variable be used for storing the message contents.

myPackage.Variables.Add("ReceiveMessageVariable", false, "", "empty");  
myMSMQTask.StringMessageToVariableName = "ReceiveMessageVariable";  

Remarks

This method is used only when the MSMQ task is receiving mail. The contents of the message are stored in a variable.

Applies to