ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / Datastore Class / GetDatastoreProperties Method
Example

In This Topic
    GetDatastoreProperties Method
    In This Topic
    Gets the datastore properties of the datastore.
    Syntax
    public DatastoreProperties GetDatastoreProperties()
    Public Function GetDatastoreProperties() As DatastoreProperties

    Return Value

    The DatastoreProperties for this datastore.
    Exceptions
    ExceptionDescription
    This datastore does not support datastore properties.
    A geodatabase-related exception has occurred.
    Example
    Get datastore or workspace properties
    public void GetDatastoreProperties(Datastore geodatabase)
    {
        // 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, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also