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
'Dichiarazione
Sub OnPropertyChanging ( _
propertyName As String, _
propertyDescriptor As PropertyDescriptor _
)
'Utilizzo
Dim instance As IVsProjectDesignerPageSite
Dim propertyName As String
Dim propertyDescriptor As PropertyDescriptor
instance.OnPropertyChanging(propertyName, _
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: System.String
The name of the property to be changed.
- propertyDescriptor
Type: System.ComponentModel.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
- 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
IVsProjectDesignerPageSite Interface
IVsProjectDesignerPageSite Members
Microsoft.VisualStudio.ManagedInterfaces.ProjectDesigner Namespace