ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / PropertyChangedBase Class / SetProperty Method / SetProperty<T>(T,T,String) Method

In This Topic
    SetProperty<T>(T,T,String) Method
    In This Topic
    Sets a property value and calls NotifyPropertyChanged when the new value differs from the current value.
    Syntax
    protected bool SetProperty<T>( 
       ref T backingField,
       T value,
       string name
    )
    Protected Overloads Function SetProperty(Of T)( _
       ByRef backingField As T, _
       ByVal value As T, _
       Optional ByVal name As String _
    ) As Boolean

    Parameters

    backingField
    value
    name

    Type Parameters

    T

    Return Value

    Returns true if the property changes.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also