共用方式為


Equals 方法 (Object, Object)

Does a boolean comparison of two objects passed as parameters.

命名空間:  Microsoft.SqlServer.Management.Collector
組件:  Microsoft.SqlServer.Management.Collector (在 Microsoft.SqlServer.Management.Collector.dll 中)

語法

'宣告
Public Function Equals ( _
    obj1 As Object, _
    obj2 As Object _
) As Boolean
'用途
Dim instance As CollectionItem..::..Key
Dim obj1 As Object
Dim obj2 As Object
Dim returnValue As Boolean

returnValue = instance.Equals(obj1, obj2)
public bool Equals(
    Object obj1,
    Object obj2
)
public:
bool Equals(
    Object^ obj1, 
    Object^ obj2
)
member Equals : 
        obj1:Object * 
        obj2:Object -> bool 
public function Equals(
    obj1 : Object, 
    obj2 : Object
) : boolean

參數

傳回值

型別:System. . :: . .Boolean
A Boolean value that returns TRUE when both objects are not NULL AND are the same.

備註

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.