SqlHierarchyId.Inequality 運算子
Evaluates whether two SqlHierarchyId nodes are unequal.
命名空間: Microsoft.SqlServer.Types
組件: Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)
語法
'宣告
Public Shared Operator <> ( _
hid1 As SqlHierarchyId, _
hid2 As SqlHierarchyId _
) As SqlBoolean
'用途
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 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- hid1
型別:Microsoft.SqlServer.Types.SqlHierarchyId
First node to compare.
- hid2
型別:Microsoft.SqlServer.Types.SqlHierarchyId
Second node to compare.
傳回值
型別:System.Data.SqlTypes.SqlBoolean
Boolean . true (1) if hid1 and hid2 are unequal; otherwise, false (0).
備註
Returns nullnull 參考 (在 Visual Basic 中為 Nothing) if either hid1 or hid2 are nullnull 參考 (在 Visual Basic 中為 Nothing).
This member is static.