GetObjectReference Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_Application.GetObjectReference Method

Creates a strong or weak object reference for a specified Outlook object.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Object GetObjectReference(
	Object Item,
	OlReferenceType ReferenceType


Type: System.Object

The object from which to obtain a strong or weak object reference.

Type: Microsoft.Office.Interop.Outlook.OlReferenceType

The type of object reference.

Return Value

Type: System.Object
An Object that represents a strong or weak object reference for the specified object.

This method returns a weak or strong object reference for the object specified in Item.


Outlook can fail to close successfully if an add-in retains strong object references. Always dereference a strong object reference once it is no longer needed by the add-in.

© 2015 Microsoft