Determines whether the two provided object references refer to the same instance.
Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assemblies:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Function ReferenceEquals ( _
    objA As Object, _
    objB As Object _
) As Boolean
public static bool ReferenceEquals(
    Object objA,
    Object objB
)
public:
static bool ReferenceEquals(
    Object^ objA, 
    Object^ objB
)
static member ReferenceEquals : 
        objA:Object * 
        objB:Object -> bool
public static function ReferenceEquals(
    objA : Object, 
    objB : Object
) : boolean
Parameters
- objA 
 Type: Object- A Object. 
- objB 
 Type: Object- A Object. 
Return Value
Type: Boolean
true if the objects both refer to the same instance; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.