Parameters
- row
- The template row used to create the RowBuffer.
| Exception | Description |
|---|---|
| System.InvalidOperationException | The template row must belong to this table. |
| ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
No row is created in the database.
The returned RowBuffer does not have an object ID value.
{
// Must be called within QueuedTask.Run
void CreateRowBufferFromARow(Table table)
{
using (RowCursor rowCursor = table.Search())
{
if (rowCursor.MoveNext())
{
using (Row templateRow = rowCursor.Current)
{
RowBuffer rowBuffer = table.CreateRowBuffer(templateRow);
// Manipulate row buffer
// Doesn't allow copying values of ObjectID and GlobalID
//
// rowBuffer["Field"] = "Update";
//
// Create a new row
table.CreateRow(rowBuffer);
}
}
}
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)