Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the two provided object references refer to the same instance.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: 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: System.Object
A Object.
- objB
Type: System.Object
A Object.
Return Value
Type: System.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.