SqlHierarchyId.Inequality Operator

Evaluates whether two SqlHierarchyId nodes are unequal.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

'Declaration
Public Shared Operator <> ( _
    hid1 As SqlHierarchyId, _
    hid2 As SqlHierarchyId _
) As SqlBoolean
'Usage
Dim hid1 As SqlHierarchyId
Dim hid2 As SqlHierarchyId
Dim returnValue As SqlBoolean

returnValue = (hid1 <> hid2)
public static SqlBoolean operator !=(
    SqlHierarchyId hid1,
    SqlHierarchyId hid2
)
public:
static SqlBoolean operator !=(
    SqlHierarchyId hid1, 
    SqlHierarchyId hid2
)
static let inline (<>)
        hid1:SqlHierarchyId * 
        hid2:SqlHierarchyId  : SqlBoolean
JScript supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Return Value

Type: System.Data.SqlTypes.SqlBoolean
Boolean . true (1) if hid1 and hid2 are unequal; otherwise, false (0).

Remarks

Returns nulla null reference (Nothing in Visual Basic) if either hid1 or hid2 are nulla null reference (Nothing in Visual Basic).

This member is static.