CorrelationDataMessageProperty 类
定义
提供一个消息属性,该属性将会随着协议的应用(例如,通过传入信息从 MessageQuerySet 返回数据时)累积消息的其他相关信息。Provides a message property that accumulates additional correlation information for a message as protocols are applied, such as when data is returned from a MessageQuerySet over the incoming message.
public ref class CorrelationDataMessageProperty : System::ServiceModel::Channels::IMessageProperty
public class CorrelationDataMessageProperty : System.ServiceModel.Channels.IMessageProperty
type CorrelationDataMessageProperty = class
interface IMessageProperty
Public Class CorrelationDataMessageProperty
Implements IMessageProperty
- 继承
-
CorrelationDataMessageProperty
- 实现
注解
在计算用于将消息关联到其他消息的实例键时,CorrelationDataMessageProperty 累积的相关数据将会增加消息内容。The correlation data accumulated by the CorrelationDataMessageProperty augments the message contents when calculating instance keys that relate messages to other messages.
构造函数
| CorrelationDataMessageProperty() |
初始化 CorrelationDataMessageProperty 类的新实例。Initializes a new instance of the CorrelationDataMessageProperty class. |
属性
| Name |
获取此消息属性的名称:“CorrelationDataMessageProperty”。Gets the name of this message property: "CorrelationDataMessageProperty". |
方法
| Add(String, Func<String>) |
将相关数据提供程序添加到该属性的提供程序专用字典。Adds a correlation data provider to the property's private dictionary of providers. |
| AddData(Message, String, Func<String>) |
将相关数据添加到指定的消息。Adds correlation data to the specified message. |
| CreateCopy() |
初始化并返回一个新的 CorrelationDataMessageProperty 实例,它是当前 CorrelationDataMessageProperty 实例的副本。Initializes and returns a new CorrelationDataMessageProperty instance that is a copy of the current CorrelationDataMessageProperty instance. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Remove(String) |
将相关数据提供程序从数据提供程序的专用字典中删除。Removes a correlation data provider from the private dictionary of data providers. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| TryGet(Message, CorrelationDataMessageProperty) |
尝试从指定消息的 Properties 获取 CorrelationDataMessageProperty。Attempts to get a CorrelationDataMessageProperty from the specified message's Properties. |
| TryGet(MessageProperties, CorrelationDataMessageProperty) |
尝试从指定的消息属性获取 CorrelationDataMessageProperty。Attempts to get the CorrelationDataMessageProperty from the specified message properties. |
| TryGetValue(String, String) |
尝试从数据提供程序专用字典中检索指定的相关数据提供程序。Attempts to retrieve the specified correlation data provider from the private dictionary of data providers. |