Share via


RelatesTo.Matches Method

Determines whether this instance of RelatesTo matches the <RelatesTo> element in the specified message.

Namespace: Microsoft.Web.Services2.Addressing
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim message As SoapEnvelope
Dim returnValue As Boolean
Dim relatesTo1 As RelatesTo
returnValue = relatesTo1.Matches(message)

Syntax

'Declaration
Public Function Matches( _
    ByVal message As SoapEnvelope _
) As Boolean
public bool Matches(
    SoapEnvelope message
);
public: Boolean Matches(
    SoapEnvelope^ message
);
public boolean Matches(
    SoapEnvelope message
);
public function Matches(
     message : SoapEnvelope
) : Boolean;

Parameters

Return Value

true if this instance of RelatesTo matches the <RelatesTo> element in the specified message; otherwise, false.

Exceptions

Exception type Condition
System.ArgumentNullException

message is null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

RelatesTo Class
Microsoft.Web.Services2.Addressing Namespace

Other Resources

RelatesTo Members