NotifyPropertyChangedDispatcherObject.SetAndRaisePropertyChanged Method (Boolean%, Boolean, 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.

Optimized implementation for System.Boolean type.

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

Syntax

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

Parameters

  • propertyDataField
    Type: System.Boolean

    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

Reference

NotifyPropertyChangedDispatcherObject Class

SetAndRaisePropertyChanged Overload

Microsoft.TeamFoundation.MVVM Namespace