C# Class Earthworm.AO.GeodatabaseExt

Provides extension methods for ArcObjects interfaces related to geodatabase.
ファイルを表示 Open project: jshirota/Earthworm

Public Methods

Method Description
Edit ( this workspace, System.Action action ) : bool

Encapsulates a workspace edit session (or an edit operation). The edits will not be saved if an exception is thrown. If the workspace is already being edited before this method is called, the edit session will not be stopped at the end of the method.

Edit ( this workspace, System.Action action, Exception &exception ) : bool

Encapsulates a workspace edit session (or an edit operation). The edits will not be saved if an exception is thrown. If the workspace is already being edited before this method is called, the edit session will not be stopped at the end of the method.

OpenFeatureClass2 ( this featureWorkspace, string featureClassName ) : IFeatureClass

Opens an existing feature class. If the feature class with the specified name does not exist, returns null.

OpenTable2 ( this featureWorkspace, string tableName ) : ITable

Opens an existing table. If the table with the specified name does not exist, returns null.

Private Methods

Method Description
GetValue ( this row, int fieldIndex ) : object
ReadRows ( this table, IQueryFilter filter ) : IEnumerable
SetValue ( this row, int fieldIndex, object value ) : void

Method Details

Edit() public static method

Encapsulates a workspace edit session (or an edit operation). The edits will not be saved if an exception is thrown. If the workspace is already being edited before this method is called, the edit session will not be stopped at the end of the method.
public static Edit ( this workspace, System.Action action ) : bool
workspace this The workspace in which edits are performed.
action System.Action The editing action.
return bool

Edit() public static method

Encapsulates a workspace edit session (or an edit operation). The edits will not be saved if an exception is thrown. If the workspace is already being edited before this method is called, the edit session will not be stopped at the end of the method.
public static Edit ( this workspace, System.Action action, Exception &exception ) : bool
workspace this The workspace in which edits are performed.
action System.Action The editing action.
exception System.Exception Any exception that may be thrown within the edit session.
return bool

OpenFeatureClass2() public static method

Opens an existing feature class. If the feature class with the specified name does not exist, returns null.
public static OpenFeatureClass2 ( this featureWorkspace, string featureClassName ) : IFeatureClass
featureWorkspace this
featureClassName string
return IFeatureClass

OpenTable2() public static method

Opens an existing table. If the table with the specified name does not exist, returns null.
public static OpenTable2 ( this featureWorkspace, string tableName ) : ITable
featureWorkspace this
tableName string
return ITable