MatchAllMessageFilter.Match Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
These methods returns true
for every message that is not null
.
Overloads
Match(Message) |
This method returns |
Match(MessageBuffer) |
The Match(MessageBuffer) method returns |
Match(Message)
This method returns true
for every message that is not null
.
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
Parameters
Returns
Returns true
.
Exceptions
message
is null
.
Remarks
The difference between the two overloads of the Match method is that one takes the MessageBuffer parameter and buffers the entire contents of a message (including its body) into memory, while the other takes the Message parameter and does not buffer the body.
Applies to
Match(MessageBuffer)
The Match(MessageBuffer) method returns true
for every message that is not null
.
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
Parameters
- messageBuffer
- MessageBuffer
The MessageBuffer object to test.
Returns
Returns true
.
Exceptions
messageBuffer
is null
.
Remarks
This method takes the MessageBuffer parameter, which buffers the entire contents of a message (including its body) into memory, and allows the body to be inspected.
Applies to
.NET