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 | Editor Class | IEditTask.OnFinishSketch Method | IEditor Interface | IEditTask.OnDeleteSketch Method | IEditTask.Activate Method | IEditTask.Deactivate Method | IEditSketch Interface | IEditAttributeProperties Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | IEditProperties Interface | IEditEvents2 Interface | ISnapEnvironment Interface | IExtension Interface