This topic has not yet been rated - Rate this topic

EndpointAddress.Equality Operator

Returns a value that indicates whether specified endpoint addresses are not equivalent.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public static bool operator ==(
	EndpointAddress address1,
	EndpointAddress address2
)

Parameters

address1
Type: System.ServiceModel.EndpointAddress

One of the EndpointAddress objects being compared.

address2
Type: System.ServiceModel.EndpointAddress

One of the EndpointAddress objects being compared.

Return Value

Type: System.Boolean
true if the endpoint addresses are equivalent; otherwise, false.
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri("http://localhost:8003/servicemodelsamples/service/incode/identity"), addressHeaders);
EndpointAddress endpointAddress2 = new EndpointAddress(
   new Uri("http://localhost:8003/servicemodelsamples/service/incode/identity"), addressHeaders);

if (endpointAddress == endpointAddress2)
    Console.WriteLine("The two endpoint addresses are equal");
else
    Console.WriteLine("The two endpoint addresses are not equal");

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

.NET Compact Framework

Supported in: 3.5
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.