MatchAllMessageFilter.Match Method

Definition

These methods returns true for every message that is not null.

Overloads

Match(Message)

This method returns true for every message that is not null.

Match(MessageBuffer)

The Match(MessageBuffer) method returns true for every message that is not null.

Match(Message)

This method returns true for every message that is not null.

public override bool Match (System.ServiceModel.Channels.Message message);

Parameters

message
Message

The Message object to test.

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

.NET Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Match(MessageBuffer)

The Match(MessageBuffer) method returns true for every message that is not null.

public override bool Match (System.ServiceModel.Channels.MessageBuffer messageBuffer);

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 Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1