NotifyPropertyChangedDispatcherObject.SetAndRaisePropertyChanged Method (Int32%, Int32, String)

A helper method that sets property value and raises PropertyChanged event if the value has changed.

Optimized implementation for System.Int32 type.

Namespace:  Microsoft.TeamFoundation.MVVM
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)


Protected Function SetAndRaisePropertyChanged ( _
    ByRef propertyDataField As Integer, _
    value As Integer, _
    propertyName As String _
) As Boolean
protected bool SetAndRaisePropertyChanged(
    ref int propertyDataField,
    int value,
    string propertyName
bool SetAndRaisePropertyChanged(
    int% propertyDataField, 
    int value, 
    String^ propertyName
member SetAndRaisePropertyChanged : 
        propertyDataField:int byref * 
        value:int * 
        propertyName:string -> bool
protected function SetAndRaisePropertyChanged(
    propertyDataField : int, 
    value : int, 
    propertyName : String
) : boolean


  • propertyDataField
    Type: System.Int32%

    A reference to the data member which is used to store property value.

Return Value

Type: System.Boolean
True if the property value has changed, false otherwise.

.NET Framework Security

See Also


NotifyPropertyChangedDispatcherObject Class

SetAndRaisePropertyChanged Overload

Microsoft.TeamFoundation.MVVM Namespace