共用方式為


MessageQueueTask Members

Contains the methods and properties used by the Message Queue task. This class cannot be inherited.

The following tables list the members exposed by the MessageQueueTask type.

Public Constructors

  名稱 Description
MessageQueueTask Initializes a new instance of the MessageQueueTask class.

頂端

Public Properties

  名稱 Description
ms214884.pubproperty(zh-tw,SQL.90).gif CurrentExecutingPackageID Gets or sets the ID of the current executing package.
ms214884.pubproperty(zh-tw,SQL.90).gif DataFileOverWritable Gets or sets a Boolean that indicates whether the data file message can overwrite an existing data file.
ms214884.pubproperty(zh-tw,SQL.90).gif DebugMode Gets or sets a Boolean that indicates whether the object is in debug mode, and whether it should raise the OnBreakpointHit event while running.
ms214884.pubproperty(zh-tw,SQL.90).gif DTSMessageLineageID Gets or sets the message lineage identifier.
ms214884.pubproperty(zh-tw,SQL.90).gif DTSMessagePackageID Gets or sets the identifier of the package that is the source of the message.
ms214884.pubproperty(zh-tw,SQL.90).gif DTSMessageVersionID Gets or sets the version of the message.
ms214884.pubproperty(zh-tw,SQL.90).gif EncryptionAlgo Gets or sets the name of the encryption algorithm used to encrypt the message body of a private message.
ms214884.pubproperty(zh-tw,SQL.90).gif ErrorIfMessageTimeOut Gets or sets a Boolean specifying whether the task fails when the message times out.
ms214884.pubproperty(zh-tw,SQL.90).gif ExecutionValue  Returns a user-defined object. This field is read-only. (inherited from Task)
ms214884.pubproperty(zh-tw,SQL.90).gif MessageDataFile Gets or sets the data file name used when the MessageType is set to DTSMQMessageType_DataFile.
ms214884.pubproperty(zh-tw,SQL.90).gif MessageString Gets or sets the message to use when the MessageType is set to DTSMQMessageType_String.
ms214884.pubproperty(zh-tw,SQL.90).gif MessageType Gets or sets a value that indicates the type of message being sent when the TaskType is DTSMQType_Sender.
ms214884.pubproperty(zh-tw,SQL.90).gif MessageVariables Gets or sets the variables list when the MQMessageType enumeration is set to DTSMQMessageType_Variables.
ms214884.pubproperty(zh-tw,SQL.90).gif MsmqConnection Gets or sets the name of the connection for the MSMQ task.
ms214884.pubproperty(zh-tw,SQL.90).gif OperationDescription Gets or sets the description of the operation.
ms214884.pubproperty(zh-tw,SQL.90).gif ReceiveMessageTimeOut Gets or sets a value that specifies the number of seconds before a received message times out.
ms214884.pubproperty(zh-tw,SQL.90).gif ReceiveMessageType Gets or sets an MQMessageType value that indicates the message type to receive.
ms214884.pubproperty(zh-tw,SQL.90).gif ReceiveVariableMessage Gets or sets the name of the variable in which to store the message.
ms214884.pubproperty(zh-tw,SQL.90).gif RemoveFromQueue Gets or sets a Boolean that specifies whether the message should be removed from the queue.
ms214884.pubproperty(zh-tw,SQL.90).gif SaveDataFileName Gets or sets the name of the file to which an incoming Data File message is saved.
ms214884.pubproperty(zh-tw,SQL.90).gif StringCompareType A value that specifies the string comparison method for a String message type when the TaskType is DTSMQType_Receiver.
ms214884.pubproperty(zh-tw,SQL.90).gif StringCompareValue Gets or sets the String to which a string message is compared to when the TaskType is DTSMQType_Receiver.
ms214884.pubproperty(zh-tw,SQL.90).gif StringMessageToVariableName Gets or sets the name of the variable to which the message contents are saved.
ms214884.pubproperty(zh-tw,SQL.90).gif SuspendRequired Gets or sets a Boolean that indicates if the task should suspend when it encounters a breakpoint. This value is set by the runtime engine for tasks and containers when a breakpoint is encountered.
ms214884.pubproperty(zh-tw,SQL.90).gif TaskType Gets or sets a value that indicates whether the message task is sending or receiving.
ms214884.pubproperty(zh-tw,SQL.90).gif Use2000Format Gets or sets a Boolean indicating that the message uses SQL Server 2000 format.
ms214884.pubproperty(zh-tw,SQL.90).gif UseEncryption Gets or sets a Boolean indicating whether the message uses encryption.
ms214884.pubproperty(zh-tw,SQL.90).gif Version  Returns the version of the task. This property is read-only. (inherited from Task)
ms214884.pubproperty(zh-tw,SQL.90).gif WaitForMe  Returns a Boolean that indicates whether the parent container should wait for completion of this task. This property is read-only. (inherited from Task)

頂端

Public Methods

(see also Protected Methods )

  名稱 Description
ms214884.pubmethod(zh-tw,SQL.90).gif AcceptBreakpointManager Passes a BreakpointManager to a task. This method is called by the runtime and is not used in code.
ms214884.pubmethod(zh-tw,SQL.90).gif CanUpdate  (inherited from Task )
ms214884.pubmethod(zh-tw,SQL.90).gif Equals  Overloaded. (inherited from DtsObject )
ms214884.pubmethod(zh-tw,SQL.90).gif Execute Overridden. Runs the task.
ms214884.pubmethod(zh-tw,SQL.90).gif GetConnectionID  (inherited from Task )
ms214884.pubmethod(zh-tw,SQL.90).gif GetConnectionName  (inherited from Task )
ms214884.pubmethod(zh-tw,SQL.90).gif GetHashCode  Returns the hash code for this instance. (inherited from DtsObject)
ms214884.pubmethod(zh-tw,SQL.90).gif GetType  (inherited from Object )
ms214884.pubmethod(zh-tw,SQL.90).gif InitializeTask Overridden. Initializes the properties associated with the task. This method is called by the runtime and is not used in code.
ms214884.pubmethod(zh-tw,SQL.90).gif LoadFromXML This method is not callable by your application code. To load a package saved in XML format (with the.xml file name extension), use the Application.LoadPackage method.
ms214884.pubmethod(zh-tw,SQL.90).gifms214884.static(zh-tw,SQL.90).gif op_Equality  (inherited from DtsObject )
ms214884.pubmethod(zh-tw,SQL.90).gifms214884.static(zh-tw,SQL.90).gif op_Inequality  (inherited from DtsObject )
ms214884.pubmethod(zh-tw,SQL.90).gifms214884.static(zh-tw,SQL.90).gif ReferenceEquals  (inherited from Object )
ms214884.pubmethod(zh-tw,SQL.90).gif ResumeExecution Resumes execution of the task after pausing. Execution of the task or container is resumed by the runtime engine.
ms214884.pubmethod(zh-tw,SQL.90).gif SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
ms214884.pubmethod(zh-tw,SQL.90).gif SuspendExecution Indicates that the executable needs to suspend. This method is called by the runtime engine.
ms214884.pubmethod(zh-tw,SQL.90).gif ToString  (inherited from Object )
ms214884.pubmethod(zh-tw,SQL.90).gif Update  (inherited from Task )
ms214884.pubmethod(zh-tw,SQL.90).gif Validate Overridden. Verifies that the task is properly configured.

頂端

Protected Methods

  名稱 Description
ms214884.protmethod(zh-tw,SQL.90).gif Finalize  (inherited from Object )
ms214884.protmethod(zh-tw,SQL.90).gif MemberwiseClone  (inherited from Object )

頂端

請參閱

參考

MessageQueueTask Class
Microsoft.SqlServer.Dts.Tasks.MessageQueueTask Namespace