ComUtilities::IsSameComObject Method (Object^, Object^)

 

Verifies that the specified objects represent the same instance of an object. This method essentially compares the IUnknown pointers of the two objects, which is needed in scenarios where aggregation is involved.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static bool IsSameComObject(
	Object^ object1,
	Object^ object2
)

Parameters

object1
Type: System::Object^

The first item to compare. This parameter can be an object, interface or IntPtr.

object2
Type: System::Object^

The second item to compare. This parameter can be an object, interface or IntPtr.

Return Value

Type: System::Boolean

true if the two items represent the same thing, false otherwise.

Return to top
Show: