Uri.Inequality Operator

Determines whether two Uri instances do not have the same value.

Namespace:  System
Assembly:  System (in System.dll)

static let inline (<>)
        uri1:Uri * 
        uri2:Uri  : bool

Parameters

uri1
Type: System.Uri

A Uri instance to compare with uri2.

uri2
Type: System.Uri

A Uri instance to compare with uri1.

Return Value

Type: System.Boolean
A Boolean value that is true if the two Uri instances are not equal; otherwise, false. If either parameter is a null reference (Nothing in Visual Basic), this method returns true.

This overload uses the Equals method to determine whether the two Uri instances are not equivalent. UserInfo and Fragment content is ignored when making this comparison.

This example creates three Uri instances from strings and compares them to determine whether they represent the same value. Address2 and Address3 are not the same because Address3 contains a Query that is not found in Address2. The outcome is written to the console.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft