This document is archived and information here might be outdated.  Recommended version.


IEditSketchExtension.BeforeStoreFeature Method (ArcObjects .NET 10.5 SDK)
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 | IEditSketch Interface | IEditTask.Activate Method | IEditor Interface | IEditTask.Deactivate Method | ISnapEnvironment Interface | IEditEvents2 Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | Editor Class | Editor Library | IEditTask.OnFinishSketch Method | IEditAttributeProperties Interface | IEditTask.OnDeleteSketch Method | IEditProperties Interface | IExtension Interface | IEditSketchExtension2 Interface