_Application.GetObjectReference(Object, OlReferenceType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a strong or weak object reference for a specified Outlook object.
public:
System::Object ^ GetObjectReference(System::Object ^ Item, Microsoft::Office::Interop::Outlook::OlReferenceType ReferenceType);
public object GetObjectReference (object Item, Microsoft.Office.Interop.Outlook.OlReferenceType ReferenceType);
Public Function GetObjectReference (Item As Object, ReferenceType As OlReferenceType) As Object
Parameters
- Item
- Object
The object from which to obtain a strong or weak object reference.
- ReferenceType
- OlReferenceType
The type of object reference.
Returns
An 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
.
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.
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro