Provides access to dataset deletion and renaming, table and index analysis, field validation and version and object class registration .
Members
Name | Description | |
---|---|---|
AnalyzeIndex | Analyze the index to generate DBMS statistics. | |
AnalyzeTable | Analyze the table to generate DBMS statistics. | |
CanDelete | Checks if an object can be deleted. | |
CanRename | Checks if an object can be renamed. | |
DeleteByName | Deletes an object by it's name. | |
IsRegisteredAsObjectClass | Checks if an object is registered as an object class. | |
IsRegisteredAsVersioned | Checks if an object is registered as versioned. | |
ValidateField | Validate a field, performing type conversion if necessary. |
IFeatureWorkspaceManage.AnalyzeIndex Method
Analyze the index to generate DBMS statistics.
Public Sub AnalyzeIndex ( _
ByVal TableName As String, _
ByVal Index As String _
)
public void AnalyzeIndex (
string TableName,
string Index
);
Remarks
The AnalyzeTableand AnalyzeIndexmethods can be used to acquire DBMS statistics on tables and table indexes. Having up-to-date statistics on a table is key to efficient query performance on the table and a key requirement for efficient queries against versioned tables. Note that datasets that are based on tables support the IDatasetAnalyzemethod; to analyze all of the tables in a feature dataset, use the IDatasetAnalyze::Analyzemethod on the feature dataset.
IFeatureWorkspaceManage.AnalyzeTable Method
Analyze the table to generate DBMS statistics.
Public Sub AnalyzeTable ( _
ByVal TableName As String, _
ByVal tableComponents As Integer _
)
public void AnalyzeTable (
string TableName,
int tableComponents
);
Remarks
The AnalyzeTableand AnalyzeIndexmethods can be used to acquire DBMS statistics on tables and table indexes. Having up-to-date statistics on a table is key to efficient query performance on the table and a key requirement for efficient queries against versioned tables. Note that datasets that are based on tables support the IDatasetAnalyzemethod; to analyze all of the tables in a feature dataset, use the IDatasetAnalyze::Analyzemethod on the feature dataset.
The TableComponents arguement takes values from the enumeration esriTableComponents.These values include esriAddsTable, esriBusinessTable, esriDeletesTable, esriFeatureTable, and esriRasterTable. The values can also be combined together. For example, to analyze the business, adds, and deletes table, you would specify (esriBusinessTable + esriAddsTable + esriDeletesTable)
IFeatureWorkspaceManage.CanDelete Method
Checks if an object can be deleted.
Public Function CanDelete ( _
ByVal aName As IName _
) As Boolean
public bool CanDelete (
IName aName
);
IFeatureWorkspaceManage.CanRename Method
Checks if an object can be renamed.
Public Function CanRename ( _
ByVal aName As IName _
) As Boolean
public bool CanRename (
IName aName
);
IFeatureWorkspaceManage.DeleteByName Method
Deletes an object by it's name.
Public Sub DeleteByName ( _
ByVal aName As IDatasetName _
)
public void DeleteByName (
IDatasetName aName
);
Remarks
The DeleteByNamemethod can be used to delete a dataset given its name object. It can be useful when cleaning up partially loaded datasets that cannot be instantiated because of incomplete information. It is made use of by ArcCatalog�s delete command. Note that IDataset::Deleteis directly available as a method on instantiated datasets.
The DeleteByName method will fail when called on feature classes that participate in geometric networks or topologies. In these cases, the containing dataset, a Geometric Network or Topology, must be deleted first in order to demote the feature classes from non-simple to simple.
IFeatureWorkspaceManage.IsRegisteredAsObjectClass Method
Checks if an object is registered as an object class.
Public Function IsRegisteredAsObjectClass ( _
ByVal Name As String _
) As Boolean
public bool IsRegisteredAsObjectClass (
string Name
);
Remarks
IsRegisteredAsObjectClassindicates if an object in the database is referenced in the Geodatabase system tables. A table created using SQL, or an SDE layer created using the ArcSDE administration commands, or other ArcSDE client software are examples of objects that are not registered with the Geodatabase. These tables will have an ObjectClassID of -1.
You can use the RegisterAsObjectClassmethod on IClassSchemaEditto register an object with the Geodatabase.
IFeatureWorkspaceManage.IsRegisteredAsVersioned Method
Checks if an object is registered as versioned.
Public Function IsRegisteredAsVersioned ( _
ByVal aName As IName _
) As Boolean
public bool IsRegisteredAsVersioned (
IName aName
);
Remarks
IsRegisteredAsVersionedindicates if a particular object in the workspace is versioned. This property applies only to objects stored in an ArcSDE workspace. You can register and unregister objects as versioned using the RegisterAsVersionedmethod on IVersionedObject.
IFeatureWorkspaceManage.ValidateField Method
Validate a field, performing type conversion if necessary.
Public Function ValidateField ( _
ByVal inField As IField _
) As IField
public IField ValidateField (
IField inField
);
Remarks
The ValidateFieldmethod takes a Field definition as input, and based on its field type, scale and precision, returns a field definition that represents more closely how that field is actually stored in the database.
For example, a field whose type is esriFieldTypeSingleand its precision and scale are 0, then it will actually be stored in the database as a double.
Classes that implement IFeatureWorkspaceManage
Classes | Description |
---|---|
Workspace | Workspace Object. |
Remarks
The IFeatureWorkspaceManageinterface contains utility methods that help in the management of feature workspaces.