UITestControlProperties.Common.ReferenceEquals Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Determines whether the specified Object instances are 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
'Usage
Dim objA As Object
Dim objB As Object
Dim returnValue As Boolean
returnValue = UITestControlProperties..::..Common.ReferenceEquals(objA, _
objB)
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
The first Object to compare.
- objB
Type: System.Object
The second Object to compare.
Return Value
Type: System.Boolean
true if objA is the same instance as objB or if both are nulla null reference (Nothing in Visual Basic) references; 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.
See Also
Reference
UITestControlProperties.Common Class