Export (0) Print
Expand All

EndpointAddress.op_Equality Method

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
)
Not applicable.

Parameters

address1

One of the EndpointAddress objects being compared.

address2

One of the EndpointAddress objects being compared.

Return Value

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft