ArcObjects Library Reference (Editor)  

IEditSketchExtension.BeforeStoreFeature Method

Lets the extension know the feature is about to be stored.

[Visual Basic .NET]
Public Sub BeforeStoreFeature ( _
    ByVal feature As IFeature, _
    ByVal Geometry As IGeometry _
)
[C#]
public void BeforeStoreFeature (
    IFeature feature,
    IGeometry Geometry
);

Product Availability

Available with ArcGIS Desktop.

Remarks

The ::BeforeStoreFeature() method is the final call before the feature and its geometry are stored into the base table.   Use this method to obtain the sketch geometry, modify it if necessary, and pass it back to the feature.

[C#]

public void BeforeStoreFeature(ESRI.ArcGIS.Geodatabase.IFeature feature, IGeometry Geometry)
{
  feature.Shape = Geometry;
}

[Visual Basic .NET]
Public  Sub BeforeStoreFeature(ByVal feature As ESRI.ArcGIS.Geodatabase.IFeature, ByVal GeomeTry As IGeometry)
  feature.Shape = GeomeTry
End Sub

See Also

IEditSketchExtension Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditTask.Name Property | Editor Class | ISnapEnvironment Interface | IEditEvents2 Interface | IEditTask.Deactivate Method | IEditAttributeProperties Interface | IEditor Interface | IEditSketch Interface | IEditTask.OnFinishSketch Method | IEditProperties Interface | IEditLayers Interface | IEditTask.Activate Method | IEditTask.OnDeleteSketch Method | IEditEvents Interface | IExtension Interface