Class DisposableFeatureCursor

Namespace
ESRI.Server.SOESupport
Assembly
ESRI.Server.SOESupport.dll

Wraps an IFeatureCursor and releases its COM resources when disposed.

public class DisposableFeatureCursor : IDisposable, IFeatureCursor
Inheritance
DisposableFeatureCursor
Implements
Inherited Members
Extension Methods

Constructors

DisposableFeatureCursor(IFeatureCursor)

Initializes a new instance of the DisposableFeatureCursor class.

public DisposableFeatureCursor(IFeatureCursor cursor)

Parameters

cursor IFeatureCursor

The feature cursor to wrap.

Properties

Fields

The fields Collection for this cursor.

public IFields Fields { get; }

Property Value

IFields

Remarks

See IFeatureCursor.Fields

Methods

DeleteFeature()

Delete the existing Feature in the database corresponding to the current position of the cursor.

public void DeleteFeature()

Remarks

See IFeatureCursor.DeleteFeature

Dispose()

Release the cursor to avoid leaking database resources.

public void Dispose()

FindField(string)

The index of the field with the specified name.

public int FindField(string name)

Parameters

name string

Returns

int

Remarks

See IFeatureCursor.FindField

Flush()

Flush any outstanding buffered writes to the database.

public void Flush()

InsertFeature(IFeatureBuffer)

Insert a new Feature into the database using the property values in the input buffer. The ID of the new Feature is returned.

public object InsertFeature(IFeatureBuffer buffer)

Parameters

buffer IFeatureBuffer

Returns

object

Remarks

See IFeatureCursor.InsertFeature

NextFeature()

Advance the position of the cursor by one and return the Feature object at that position.

public IFeature NextFeature()

Returns

IFeature

Remarks

See IFeatureCursor.NextFeature

UpdateFeature(IFeature)

Update the existing Feature in the database corresponding to the current position of the cursor.

public void UpdateFeature(IFeature feature)

Parameters

feature IFeature

Remarks

See IFeatureCursor.UpdateFeature