NotifyPropertyChangedDispatcherObject.SetAndRaisePropertyChanged Method (String%, String, String)
A helper method that sets property value and raises PropertyChanged event if the value has changed.
Optimized implementation for string type.
Namespace: Microsoft.TeamFoundation.MVVM
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Protected Function SetAndRaisePropertyChanged ( _
ByRef propertyDataField As String, _
value As String, _
propertyName As String _
) As Boolean
protected bool SetAndRaisePropertyChanged(
ref string propertyDataField,
string value,
string propertyName
)
protected:
bool SetAndRaisePropertyChanged(
String^% propertyDataField,
String^ value,
String^ propertyName
)
member SetAndRaisePropertyChanged :
propertyDataField:string byref *
value:string *
propertyName:string -> bool
protected function SetAndRaisePropertyChanged(
propertyDataField : String,
value : String,
propertyName : String
) : boolean
Parameters
propertyDataField
Type: System.String%A reference to the data member which is used to store property value.
value
Type: System.StringNew 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