Condividi tramite


Proprietà MessageDataFile

Gets or sets the data file name used when the MessageType is set to DTSMQMessageType_DataFile.

Spazio dei nomi  Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
Assembly:  Microsoft.SqlServer.MSMQTask (in Microsoft.SqlServer.MSMQTask.dll)

Sintassi

'Dichiarazione
Public Property MessageDataFile As String
    Get
    Set
'Utilizzo
Dim instance As MessageQueueTask
Dim value As String

value = instance.MessageDataFile

instance.MessageDataFile = value
public string MessageDataFile { get; set; }
public:
property String^ MessageDataFile {
    String^ get ();
    void set (String^ value);
}
member MessageDataFile : string with get, set
function get MessageDataFile () : String
function set MessageDataFile (value : String)

Valore proprietà

Tipo: System. . :: . .String
A String that contains the name of the data file used.

Esempi

The following code example shows the syntax to use when setting the MessageDataFile property.

myMSMQTask.MessageDataFile = @"\\myserver\myDataFiles\Test1.txt";