Version

OnParameterNameChanged Method

Fires the ParameterNameChanged event, and cancels any change if an Exception is thrown by any event handler.
Syntax
'Declaration
 
Protected Overridable Function OnParameterNameChanged( _
   ByVal args As PropertyChangedEventArgs _
) As Boolean
protected virtual bool OnParameterNameChanged( 
   PropertyChangedEventArgs args
)

Parameters

args
Arguments, the name contained is the proposed new parameter name.

Return Value

True if all event handlers have accepted the change in parameter name.
Remarks

An event handler may reject the change (for instance, because it duplicates a parameter name already present in the containing parameters collection) by throwing an Exception, which this method will catch by default. Inheritors may override this behavior.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also