IVsProjectDesignerPageSite.OnPropertyChanging Method
Raised before a property value is changed.
Namespace: Microsoft.VisualStudio.ManagedInterfaces.ProjectDesigner
Assembly: Microsoft.VisualStudio.ManagedInterfaces (in Microsoft.VisualStudio.ManagedInterfaces.dll)
'宣告
Sub OnPropertyChanging ( _
propertyName As String, _
propertyDescriptor As PropertyDescriptor _
)
void OnPropertyChanging(
string propertyName,
PropertyDescriptor propertyDescriptor
)
- propertyName
Type: System.String
The name of the property to be changed.
- propertyDescriptor
Type: System.ComponentModel.PropertyDescriptor
A PropertyDescriptor that applies to the property.
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.
- 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.
IVsProjectDesignerPageSite Interface
Microsoft.VisualStudio.ManagedInterfaces.ProjectDesigner Namespace