|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAppROT
Provides access to members that manipulate the ESRI application running object table, AppROT.
Use the IAppROT interface to work with the Application Running Object Table (AppROT) for ESRI applications. This interface has methods for adding and removing instances of an application to/from the AppROT. Also using this interface you can get a count of how many application are registered with the AppROT or return a particular instance of an application.
Method Summary | |
---|---|
int |
add(IApplication pApp)
Adds an application reference to the running object table. |
int |
getCount()
The count of application references within the running object table. |
IApplication |
getItem(int index)
The application reference at the specified index in the running object table. |
void |
remove(int cookie)
Removes an application reference from the running object table. |
Method Detail |
---|
int add(IApplication pApp) throws IOException, AutomationException
pApp
- A reference to a com.esri.arcgis.framework.IApplication (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IApplication
void remove(int cookie) throws IOException, AutomationException
cookie
- The cookie (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCount() throws IOException, AutomationException
The following example uses AppROT's Count property to determine if any applications are already running. You would get m_app from the hook in ICommand::OnCreate().
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IApplication getItem(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |