CorrelationActionMessageFilter.Match 方法

定义

确定消息的操作是否与此 CorrelationActionMessageFilterAction 相匹配。Determines whether a message's action matches the Action of this CorrelationActionMessageFilter.

重载

Match(Message)

确定指定的消息操作是否与此 CorrelationActionMessageFilterAction 相匹配。Determines whether the specified message's action matches the Action of this CorrelationActionMessageFilter.

Match(MessageBuffer)

确定由指定的消息缓冲区包含的消息的操作是否与此 ActionCorrelationActionMessageFilter 相匹配。Determines whether the action of the message contained by the specified message buffer matches the Action of this CorrelationActionMessageFilter.

注解

消息的操作由 Action 消息的的属性指定 HeadersA message's action is specified by the Action property of the message's Headers.

Match(Message)

确定指定的消息操作是否与此 CorrelationActionMessageFilterAction 相匹配。Determines whether the specified message's action matches the Action of this CorrelationActionMessageFilter.

public:
 override bool Match(System::ServiceModel::Channels::Message ^ message);
public override bool Match (System.ServiceModel.Channels.Message message);
override this.Match : System.ServiceModel.Channels.Message -> bool
Public Overrides Function Match (message As Message) As Boolean

参数

message
Message

要比较的消息。The message to compare.

返回

Boolean

如果操作匹配,则为 true;否则为 falsetrue if the action matches; otherwise, false.

注解

消息的操作由 Action 消息的的属性指定 HeadersA message's action is specified by the Action property of the message's Headers.

适用于

Match(MessageBuffer)

确定由指定的消息缓冲区包含的消息的操作是否与此 ActionCorrelationActionMessageFilter 相匹配。Determines whether the action of the message contained by the specified message buffer matches the Action of this CorrelationActionMessageFilter.

public:
 override bool Match(System::ServiceModel::Channels::MessageBuffer ^ messageBuffer);
public override bool Match (System.ServiceModel.Channels.MessageBuffer messageBuffer);
override this.Match : System.ServiceModel.Channels.MessageBuffer -> bool
Public Overrides Function Match (messageBuffer As MessageBuffer) As Boolean

参数

messageBuffer
MessageBuffer

包含要比较的消息的消息缓冲区。The message buffer that contains the message to compare.

返回

Boolean

如果操作匹配,则为 true;否则为 falsetrue if the action matches; otherwise, false.

注解

消息的操作由 Action 消息的的属性指定 HeadersA message's action is specified by the Action property of the message's Headers.

适用于