SqlHierarchyId.Equals 方法
Evaluates whether SqlHierarchyId and obj are equal.
命名空間: Microsoft.SqlServer.Types
組件: Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)
語法
'宣告
Public Overrides Function Equals ( _
obj As Object _
) As Boolean
'用途
Dim instance As SqlHierarchyId
Dim obj As Object
Dim returnValue As Boolean
returnValue = instance.Equals(obj)
public override bool Equals(
Object obj
)
public:
virtual bool Equals(
Object^ obj
) override
abstract Equals :
obj:Object -> bool
override Equals :
obj:Object -> bool
public override function Equals(
obj : Object
) : boolean
參數
- obj
型別:System.Object
The object against which to compare this.
傳回值
型別:System.Boolean
Boolean . true (1) if this and obj are equal; otherwise, false (0).
備註
Returns false (0) if obj is not a SqlHierarchyId node.
Returns true (1) if both this and obj are nullnull 參考 (在 Visual Basic 中為 Nothing).