ArcObjects Library Reference  (GeoDatabase)    

IWorkspaceProperties Interface

Provides access to members that control the workspace properties.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property Property Information about this particular property.

CoClasses that implement IWorkspaceProperties

CoClasses and Classes Description
AMSWorkspace (esriTrackingAnalyst) Controls the Tracking Server workspace COM object's properties.
NetCDFWorkspace (esriDataSourcesNetCDF) The NetCDF workspace object.
RasterWorkspace (esriDataSourcesRaster) The raster workspace object.
Sde3Workspace (esriDataSourcesGDB) ESRI SDE (3.x) Feature Database.
VersionedWorkspace VersionedWorkspace Object.

Remarks

A workspace may have a set of properties that may be queried using the optional IWorkspaceProperties interface.
Properties are organized into property groups identified by an emumeration. Within a property group, each property is identified by an enumeration. The property groups supported are WorkspacePropertyGroup and TablePropertyGroup.

These are the properties in WorkspacePropertyGroup:

These are the properties in the TablePropertyGroup :

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 absense of optional interfaces or with failure when executing methods on mandatory interfaces, for example because of privileges or licensing issues.

[C#]

// To test whether a workspace is read-only, use:

ESRI.ArcGIS.Geodatabase.IWorkspaceProperties pWorkspaceProperties = (ESRI.ArcGIS.Geodatabase.IWorkspaceProperties)outWorkspaceFactory;

Boolean canEdit;

canEdit = (Boolean)pWorkspaceProperties.get_Property(ESRI.ArcGIS.Geodatabase.esriWorkspacePropertyGroupType.esriWorkspacePropertyGroup, (int)ESRI.ArcGIS.Geodatabase.esriWorkspacePropertyType.esriWorkspacePropIsReadonly).PropertyValue;

Console.WriteLine(canEdit);

[Visual Basic 6.0]

'To test whether a workspace is read-only, use:
Debug.Print pWProps.Property(esriWorkspacePropertyGroup, esriWorkspacePropIsReadonly).PropertyValue

See Also

IWorkspaceConfiguration Interface | IWorkspaceProperty Interface

Example

IWorkspaceProperties Example

 


Feedback Send feedback on this page