Microsoft.SqlServer.MSMQTask
此命名空间包含创建消息队列任务所需的成员。
包含用于在 为 时为消息队列任务生成消息的成员。
初始化 类的新实例。
一个 String,它包含消息的内容。
包含消息的数据文件的名称。
包的 ID。
描述消息队列任务使用的加密类型(如果有)。
初始化 类的新实例。
获取或设置用于加密私有消息的消息正文的加密算法。
A valid value from the EncryptionAlgorithm enumeration. The EncryptionAlgorithm is an enumeration in the .NET Framework Class Library, and is in the System.Messaging namespace.
包含用于将对象序列化到从队列读取的消息正文中或将对象反序列化到写入队列的消息正文中的格式化程序。
初始化 类的新实例。
获取一个值,该值指示消息队列是否可读取。
true if the message object can be read.
The message queue whose readability is in question.
创建是当前实例的副本的新对象。
A new object that is a copy of this instance.
读取消息。
An object containing the message.
The message to read.
打开一个内存流并写入消息对象。此方法序列化包括 PackageID、VersionID、数据文件名称和文件内容的消息对象。
The message object to write.
The variable that the message object is in.
包含消息队列任务所使用的方法和属性。无法继承此类。
初始化 类的新实例。
将 传递给某一任务。此方法由运行时调用,在代码中未使用。
The to use for controlling breakpoints on this task.
运行任务。
A value from the enumeration.
A collection of connections used by the task.
A object for locking variables.
An object implementing the interface.
An object implementing the interface.
The transaction object that the container is a part of. The runtime provides the transaction for the container, based on the property. This value can be null.
初始化与该任务相关联的属性。此方法由运行时调用,在代码中未使用。
A collection of connections used by the task.
A object for locking variables.
An object implementing the interface.
An object implementing the interface.
A collection containing events to be raised during execution of the task.
A collection of log entries.
An object reference tracker.
此方法不能由应用程序代码调用。若要加载以 XML 格式(具有 .xml 文件扩展名)保存的包,请使用 方法。
The node containing the object to be loaded and persisted.
An object that implements the interface for firing events (errors, warnings, and so on) during persistence.
暂停后恢复执行任务。由运行时引擎恢复任务或容器的执行。
此方法不能由应用程序代码调用。若将包保存为 .xml,请使用 方法。
The XML document to save the information to.
An object that implements the interface for firing events (errors, warnings, and so on) during persistence.
指示可执行文件需要挂起。运行时引擎调用此方法。
验证该任务已正确配置。
A value from the enumeration.
A collection of connections used by the task.
A object for locking variables.
An object implementing the interface.
An object implementing the interface.
获取或设置当前执行的包的 ID。
A String that contains the ID, represented as a GUID, of the current executing package.
获取或设置一个布尔值,该值指示数据文件消息是否可覆盖现有数据文件。
true if the message can overwrite an existing file; false if it does not overwrite.
获取或设置一个布尔值,该值指示对象是否处于调试模式中,并且在运行时是否应引发 事件。
true indicates that the object is in debug mode, and raises the event. false indicates that the object is not in debug mode.
获取或设置消息沿袭标识符。
A String that contains the message lineage identifier.
获取或设置作为消息源的包的标识符。
A String that contains the identifier of the package that is the source of the message.
获取或设置消息的版本。
A String that contains the version of the message.
获取或设置用于加密私有消息的消息正文的加密算法的名称。
The name of the encryption algorithm.
获取或设置一个布尔值,该值指定在消息超时时任务是否失败。
true if the task fails when the message times out; false if the task does not.
获取或设置在 设置为 时使用的数据文件名。
A String that contains the name of the data file used.
获取或设置在 设置为 时使用的消息。
A String that contains the message.
获取或设置一个值,该值指示在 为 时要发送的消息的类型。
A value from the enumeration that indicates the type of message to send.
获取或设置在 枚举设置为 时的变量列表。
A String that contains the list of variables used in the message.
获取或设置 MSMQ 任务的连接名称。
A String that contains the MSMQ connection name.
获取或设置操作的说明。
A String that contains a description of the operation.
获取或设置一个值,该值指定接收的消息在超时之前等待的秒数。
A Long that indicates the number of seconds before a message times out.
获取或设置一个 值,该值指示要接收的消息类型。
An value that indicates the type of the incoming message.
获取或设置用于存储消息的变量的名称。
A String that contains the name of the variable to store the message in.
获取或设置一个布尔值,该值指定是否应该从队列中删除消息。
true if the message should be removed from the queue; false if it should be left in the queue.
获取或设置传入的数据文件消息保存到的文件的名称。
A String that indicates the name of the file to which an incoming Data File message is saved.
一个值,该值指定在 为 时用于字符串消息类型的字符串比较方法。
One of the valid values in , indicating the string comparison method.
获取或设置在 为 时字符串消息与之进行比较的字符串。
A String used for comparison when the is .
获取或设置消息内容保存到的变量的名称。
A String that contains the variable to store the message in.
获取或设置一个布尔值,该值指示在遇到断点时任务是否应挂起。遇到断点时,将由任务和容器的运行时引擎设置此值。
true if the task suspends when it encounters a breakpoint.
获取或设置一个值,该值指示是否正在发送或接收消息任务。
A valid value from the enumeration.
获取或设置一个布尔值,该值指示消息使用 SQL Server 2000 格式。
false indicates that the SQL Server 2000 format is not used; true indicates that the SQL Server 2000 format is used.
获取或设置一个布尔值,该值指示消息是否使用加密。
true indicates that encryption is used; false indicates that encryption is not used.
在 设置为 的值时描述消息类型。
消息源是数据文件。
消息源是字符串。
消息源位于变量中,并且目标也是变量。
消息源位于文本中,并且目标是变量。仅当消息队列任务正在接收消息时,此枚举才有效。
包含值,这值控制在消息队列任务接收消息时该消息队列任务所使用的比较方法。若要接收消息, 必须设置为 ,并且消息类型必须设置为 。
指定消息内容必须在 中包含该字符串。
指定消息内容必须与 中的字符串完全匹配。
指定比较是否区分大小写字母。在使用此枚举值时,字符串比较忽略大小写。例如,“ABC”与“abc”相同。
指定不进行比较。
指示消息队列任务是否正在发送或接收消息。
该任务正在接收消息。
该任务正在发送消息。
指定用于与消息队列任务一起记入日志的事件。
打开队列后记入日志。
打开队列前记入日志。
接收消息前将时间戳记入日志。
发送消息前将时间戳记入日志。
接收消息后将时间戳记入日志。
发送消息后将时间戳记入日志。
记录任务已超时。
仅在启用日志记录并且事件筛选器状态设置为 true 时,才将任务信息记入日志。