LibreOffice Module cli_ure (master) 1
Public Member Functions | Private Attributes | List of all members
uno.util.DisposeGuard Struct Reference

Helper class to conveniently auto dispose UNO objects from within managed code. More...

Inheritance diagram for uno.util.DisposeGuard:
[legend]
Collaboration diagram for uno.util.DisposeGuard:
[legend]

Public Member Functions

 DisposeGuard (XComponent obj)
 ctor. More...
 
void Dispose ()
 System.IDisposable impl. More...
 

Private Attributes

XComponent m_xComponent
 

Detailed Description

Helper class to conveniently auto dispose UNO objects from within managed code.

Definition at line 28 of file DisposeGuard.cs.

Constructor & Destructor Documentation

◆ DisposeGuard()

uno.util.DisposeGuard.DisposeGuard ( XComponent  obj)
inline

ctor.

Parameters
objtarget object

Definition at line 36 of file DisposeGuard.cs.

References uno.util.DisposeGuard.m_xComponent.

Member Function Documentation

◆ Dispose()

void uno.util.DisposeGuard.Dispose ( )
inline

System.IDisposable impl.

Definition at line 43 of file DisposeGuard.cs.

References uno.util.DisposeGuard.m_xComponent.

Member Data Documentation

◆ m_xComponent

XComponent uno.util.DisposeGuard.m_xComponent
private

The documentation for this struct was generated from the following file: