|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorkspaceProperties
Provides access to members that control the workspace properties.
A workspace may have a set of properties that may be queried using the optional IWorkspaceProperties interface. Two groups of workspace properties exist, the workspace property group and the table property group. Both groups have values in the esriWorkspacePropertyGroupType enumeration, which should be passed to the propertyGroup parameter of this property to indicate which group is being accessed.
The PropertyType parameter should be a value from one of two enumerations, depending on which property group is desired. If the esriWorkspacePropertyGroup value is passed in as the propertyGroup parameter, a value from the esriWorkspacePropertyType enumeration should be passed in as the PropertyType parameter. If the esriWorkspaceTablePropertyGroup value is passed in as the propertyGroup parameter, a value from the esriWorkspaceTablePropertyType enumeration should be passed in as the PropertyType parameter.
Note that the PropertyType parameter expects a long integer. This is because a value from either the esriWorkspacePropertyType enumeration or the esriWorkspaceTablePropertyType enumeration may be used. In some languages (for example, C#) it is necessary to cast these enumerations' values to integers when passing them to the Property property. See the C# example associated with this interface for more on this.
Some of the properties of workspace property group include:
Some of the properties in the table property group include:
Applications can use the above properties to determine the capability of the workspace they are working with. Note that if the optional IWorkspaceProperties interface is not implemented, applications should assume that the above capabilities are supported. Applications should always be prepared to deal with the absence of optional interfaces or with failure when executing methods on mandatory interfaces, for example because of privileges or licensing issues.
Method Summary | |
---|---|
IWorkspaceProperty |
getProperty(int propertyGroup,
int propertyType)
Information about this particular property. |
void |
setProperty(int propertyGroup,
int propertyType,
IWorkspaceProperty workspaceProperty)
Information about this particular property. |
Method Detail |
---|
IWorkspaceProperty getProperty(int propertyGroup, int propertyType) throws IOException, AutomationException
propertyGroup
- A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType
- The propertyType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setProperty(int propertyGroup, int propertyType, IWorkspaceProperty workspaceProperty) throws IOException, AutomationException
propertyGroup
- A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType
- The propertyType (in)workspaceProperty
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceProperty (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 |