ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Editing Namespace / ToolOptions Class / GetProperty<T>(String,T) Method
a supported (numeric or string) option type
the option name
a default value for in case the option is not currently stored in this ToolOptions
Version

    GetProperty<T>(String,T) Method
    Provide generic access to an option
    Syntax
    public T GetProperty<T>( 
       string key,
       T defaultValue
    )

    Parameters

    key
    the option name
    defaultValue
    a default value for in case the option is not currently stored in this ToolOptions

    Type Parameters

    T
    a supported (numeric or string) option type

    Return Value

    the required value or the specified default
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also