MatchAllMessageFilter.Match Method
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
.
Match(Message) |
This method returns |
Match(MessageBuffer) |
The Match(MessageBuffer) method returns |
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
.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 |
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 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 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: