ArcDataBinding.FieldPropertyDescriptor.GetValue C# (CSharp) Метод

GetValue() публичный Метод

Gets the current value of the property on a component.
This will return the field value for all fields apart from geometry, raster and Blobs. These fields will return the string equivalent of the geometry type.
public GetValue ( object component ) : object
component object The component (an IRow) with the property for /// which to retrieve the value.
Результат object
    public override object GetValue(object component)
    {
      object retVal = null;

      IRow givenRow = (IRow)component;
      try
      {
        // Get value
        object value = givenRow.get_Value(wrappedFieldIndex);

        if ((null != cvDomain) && useCVDomain)
        {
          value = cvDomain.get_Name(Convert.ToInt32(value));
        }

        switch (esriType)
        {
            case esriFieldType.esriFieldTypeBlob:
                retVal = "Blob";
                break;
            
            case esriFieldType.esriFieldTypeGeometry:
                retVal = GetGeometryTypeAsString(value);
                break;
            
            case esriFieldType.esriFieldTypeRaster:
                retVal = "Raster";
                break;
            
            default:
                retVal = value;
                break;
        }
      }
      catch (Exception e)
      {
        System.Diagnostics.Debug.WriteLine(e.Message);
      }

      return retVal;
    }