|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IESRILicenseInfo
Provides access to members that check software licenses.
The object models for ArcView, ArcEditor, and ArcInfo at ArcGIS 9.0 are identical. All classes, interfaces, methods, and properties are present in all products. This means that the same DLLs containing the same components with the same GUIDs are installed for all deployments; in other words, code written on one deployment will successfully compile on another. What will differ for the various deployments is the behavior of certain method calls.
As a developer you may need to know what license is currently checked out by the user, so that your code can be robust enough to work on all deploymets, or at least have the appropriate error checking.
To determine the level of license currently in use, use the ESRILicenseInfo coclass and the DefaultProduct property on its IESRILicenseInfo interface.
Use the IESRILicenseInfo interface to determine the level of license currently in use--ArcView, ArcEditor, or ArcInfo.
Method Summary | |
---|---|
int |
getDefaultProduct()
Indicates the product code that will be used on the current machine. |
boolean |
isLicensed(int productCode)
Indicates if the specified product is licensed. |
Method Detail |
---|
int getDefaultProduct() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLicensed(int productCode) throws IOException, AutomationException
productCode
- A com.esri.arcgis.system.esriProductCode constant (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 |