NotifyPropertyChangedDispatcherObject.SetAndRaisePropertyChanged<T> Method (T%, T, String)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
A helper method that sets property value and raises PropertyChanged event if the value has changed.
Namespace: Microsoft.TeamFoundation.MVVM
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Protected Function SetAndRaisePropertyChanged(Of T) ( _
ByRef propertyDataField As T, _
value As T, _
propertyName As String _
) As Boolean
protected bool SetAndRaisePropertyChanged<T>(
ref T propertyDataField,
T value,
string propertyName
)
protected:
generic<typename T>
bool SetAndRaisePropertyChanged(
T% propertyDataField,
T value,
String^ propertyName
)
member SetAndRaisePropertyChanged :
propertyDataField:'T byref *
value:'T *
propertyName:string -> bool
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
propertyDataField
Type: T%A reference to the data member which is used to store property value.
value
Type: TNew property value.
propertyName
Type: System.StringThe name of the property.
Return Value
Type: System.Boolean
True if the property value has changed, false otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
NotifyPropertyChangedDispatcherObject Class