SqlHierarchyId.LessThanOrEqual Operator

Evaluates whether one specified SqlHierarchyId node is less than or equal to another.

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 . Returns true if hid1 is less than or equal to hid2; otherwise false.

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.