Partager via


IVsProjectDesignerPageSite.OnPropertyChanging Method

Raised before a property value is changed.

Namespace:  Microsoft.VisualStudio.ManagedInterfaces.ProjectDesigner
Assembly:  Microsoft.VisualStudio.ManagedInterfaces (in Microsoft.VisualStudio.ManagedInterfaces.dll)

Syntax

'Declaration
Sub OnPropertyChanging ( _
    propertyName As String, _
    propertyDescriptor As PropertyDescriptor _
)
void OnPropertyChanging(
    string propertyName,
    PropertyDescriptor propertyDescriptor
)
void OnPropertyChanging(
    String^ propertyName, 
    PropertyDescriptor^ propertyDescriptor
)
abstract OnPropertyChanging : 
        propertyName:string * 
        propertyDescriptor:PropertyDescriptor -> unit
function OnPropertyChanging(
    propertyName : String, 
    propertyDescriptor : PropertyDescriptor
)

Parameters

  • propertyName
    Type: String

    The name of the property to be changed.

  • propertyDescriptor
    Type: PropertyDescriptor

    A PropertyDescriptor that applies to the property.

Remarks

If a property page hosted by the Project Designer wants to support automatic Undo/Redo, it must call this method before a property value is changed. This allows the site to query for the current value of the property and save it for later use in handling Undo/Redo.

.NET Framework Security

See Also

Reference

IVsProjectDesignerPageSite Interface

Microsoft.VisualStudio.ManagedInterfaces.ProjectDesigner Namespace