다음을 통해 공유


MessageQueueTask.StringMessageToVariableName 속성

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

네임스페이스:  Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
어셈블리:  Microsoft.SqlServer.MSMQTask(Microsoft.SqlServer.MSMQTask.dll)

구문

‘선언
Public Property StringMessageToVariableName As String 
    Get 
    Set
‘사용 방법
Dim instance As MessageQueueTask 
Dim value As String 

value = instance.StringMessageToVariableName

instance.StringMessageToVariableName = value
public string StringMessageToVariableName { get; set; }
public:
virtual property String^ StringMessageToVariableName {
    String^ get () sealed;
    void set (String^ value) sealed;
}
abstract StringMessageToVariableName : string with get, set 
override StringMessageToVariableName : string with get, set
final function get StringMessageToVariableName () : String 
final function set StringMessageToVariableName (value : String)

속성 값

유형: System.String
A String that contains the variable to store the message in.

구현

IMessageQueueTask.StringMessageToVariableName

주의

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

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";

참고 항목

참조

MessageQueueTask 클래스

Microsoft.SqlServer.Dts.Tasks.MessageQueueTask 네임스페이스