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).

请参阅

参考

SqlHierarchyId 结构

Microsoft.SqlServer.Types 命名空间