ArcMapAddinVisibility.ViewModels.RLOSViewModel.SetDatabaseFieldValue C# (CSharp) Метод

SetDatabaseFieldValue() публичный статический Метод

Sets a database fields value Throws an exception if the field is not found.
public static SetDatabaseFieldValue ( IRowBuffer ipRowBuffer, string strFieldName, object oFieldValue ) : void
ipRowBuffer IRowBuffer The tables row buffer
strFieldName string The fields name
oFieldValue object The value to set
Результат void
        public static void SetDatabaseFieldValue(IRowBuffer ipRowBuffer, string strFieldName, object oFieldValue)
        {
            int iFieldIndex = ipRowBuffer.Fields.FindField(strFieldName);
            if (iFieldIndex >= 0)
            {
                ipRowBuffer.set_Value(iFieldIndex, oFieldValue);
            }
            else
            {
                throw new Exception(VisibilityLibrary.Properties.Resources.ExceptionFieldIndexNotFound);
            }
        }