ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Data Namespace / DatastoreProperties Class / SupportsDateOnly Property
Example

In This Topic
    SupportsDateOnly Property
    In This Topic
    Gets whether the datastore supports FieldType.DateOnly fields.
    Syntax
    public bool SupportsDateOnly {get;}
    Public ReadOnly Property SupportsDateOnly As Boolean
    Example
    Get datastore or workspace properties
    {
      Task GetDatastorePropertiesAsync(Datastore geodatabase) => QueuedTask.Run(() =>
      {
        // Check if a data store supports datastore properties
        bool areDatastorePropertiesSupported = geodatabase.AreDatastorePropertiesSupported();
    
        if (areDatastorePropertiesSupported)
        {
          DatastoreProperties datastoreProperties = geodatabase.GetDatastoreProperties();
    
          // Supports 64-bit integer field
          bool supportsBigInteger = datastoreProperties.SupportsBigInteger;
    
          // Supports pagination
          bool supportsQueryPagination = datastoreProperties.SupportsQueryPagination;
    
          // Supports datastore edit
          bool canEdit = datastoreProperties.CanEdit;
    
          // Supports 64-bit Object ID
          bool supportsBigObjectId = datastoreProperties.SupportsBigObjectID;
    
          // Supports DateOnly field
          bool supportsDateOnly = datastoreProperties.SupportsDateOnly;
    
          // Supports TimeOnly field
          bool supportsTimeOnly = datastoreProperties.SupportsTimeOnly;
    
          // Supports TimestampOffset field
          bool supportsTimestampOffset = datastoreProperties.SupportsTimestampOffset;
        }
      });
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.3 or higher.
    See Also