ArcGIS Pro 2.7 API Reference Guide
GetProperty<T>(String,T) Method

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
provide generic access to an option
Syntax
public T GetProperty<T>( 
   string key,
   T defaultValue
)
Public Function GetProperty(Of T)( _
   ByVal key As String, _
   Optional ByVal defaultValue As T _
) As T

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 10, Windows 8.1

See Also

Reference

ToolOptions Class
ToolOptions Members