Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Application.GetObjectReference Method

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

Version Information
 Version Added:  Outlook 2007

Syntax

expression.GetObjectReference(Item, ReferenceType)

expression   An expression that returns an Application object.

Parameters

NameRequired/OptionalData TypeDescription
ItemRequiredObjectThe object from which to obtain a strong or weak object reference.
ReferenceTypeRequiredOlReferenceTypeThe type of object reference.

Return Value
An Object object that represents a strong or weak object reference for the specified object.

Remarks

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

Bb175106.vs_note(en-us,office.12).gif  Note
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.



Community Additions

ADD
Show:
© 2015 Microsoft