Class DisposableCursor

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

Wraps an ICursor and releases its COM resources when disposed.

public class DisposableCursor : IDisposable, ICursor
Inheritance
DisposableCursor
Implements
Inherited Members
Extension Methods

Constructors

DisposableCursor(ICursor)

Initializes a new instance of the DisposableCursor class.

public DisposableCursor(ICursor cursor)

Parameters

cursor ICursor

The cursor to wrap.

Properties

Fields

The Fields Collection for this cursor.

public IFields Fields { get; }

Property Value

IFields

Remarks

See ICursor.Fields

Methods

DeleteRow()

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

public void DeleteRow()

Remarks

See ICursor.DeleteRow

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 ICursor.FindField

Flush()

Flush any outstanding buffered writes to the database.

public void Flush()

Remarks

See ICursor.Flush

InsertRow(IRowBuffer)

Insert a new Row into the database using the property values in the input buffer. The object ID of the new Row, if there is one, is returned.

public object InsertRow(IRowBuffer buffer)

Parameters

buffer IRowBuffer

Returns

object

Remarks

See ICursor.InsertRow

NextRow()

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

public IRow NextRow()

Returns

IRow

Remarks

See ICursor.NextRow

UpdateRow(IRow)

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

public void UpdateRow(IRow row)

Parameters

row IRow

Remarks

See ICursor.UpdateRow