Noemax.WCFX.Behaviors Namespace > OperationMessageFilterAttributeBase Class : Match Method |
'Declaration Public MustOverride Function Match( _ ByRef message As System.ServiceModel.Channels.Message _ ) As System.Boolean
'Usage Dim instance As OperationMessageFilterAttributeBase Dim message As System.ServiceModel.Channels.Message Dim value As System.Boolean value = instance.Match(message)
public abstract System.bool Match( ref System.ServiceModel.Channels.Message message )
public function Match( var message: System.ServiceModel.Channels.Message ): System.Boolean; abstract;
public __abstract function Match( message : System.ServiceModel.Channels.Message ) : System.boolean;
public: abstract System.bool Match( ref System.ServiceModel.Channels.Message* message )
public: abstract System.bool Match( System.ServiceModel.Channels.Message^% message )
Within this method the filter can always evaluate the header of the message. While it can evaluate the body of the message only if it is buffered. Implementations should return true if the message is associated with the represented local operation, otherwise false.
The message is provided ByRef, this allows substitution of the original message with a wrapper, buffered copy or any other instance of the Message class. In such cases the subsequent filters will receive the new substitute message regardless of what value this method returns.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2