Helper method used by property setters to change the value of a field and raise the PropertyChanged event.
'Declaration
Protected Overrides Function SetField(Of )( _
ByRef As , _
ByVal As , _
ByVal As String _
) As Boolean
protected override bool SetField<>(
ref ,
,
string
)
Parameters
- member
- The field member to be modified
- value
- The new value
- propertyName
- The name of the property associated with the field being changed
Type Parameters
- T
- The type of field member being changed
Return Value
True if the new value differed from the member and the property was changed; otherwise false is returned.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2