ArcGIS Pro 2.7 API Reference Guide
SetProperty<T>(T,T,Expression<Func<T>>) Method

ArcGIS.Desktop.Framework.Contracts Namespace > PropertyChangedBase Class > SetProperty Method : SetProperty<T>(T,T,Expression<Func<T>>) Method
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,
   Expression<Func<T>> property
)
Protected Overloads Function SetProperty(Of T)( _
   ByRef backingField As T, _
   ByVal value As T, _
   ByVal property As Expression(Of Func(Of T)) _
) As Boolean

Parameters

backingField
value
property

Type Parameters

T

Return Value

Returns true if the property changes.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PropertyChangedBase Class
PropertyChangedBase Members
Overload List