When overridden in a derived class, sets the value of the component to a different value.
Assembly: System (in System.dll)
Typically, this method is implemented through reflection.
This method creates a DesignerTransaction automatically in the following order:
The method calls the IComponentChangeService.OnComponentChanging method to indicate that the transaction has begun and the changes are about to occur.
The method resets the property to the value determined by this method's checking order.
The method calls the IComponentChangeService.OnComponentChanged method to indicate that the changes have occurred.
The method calls DesignerTransaction.Commit to indicate that the transaction is complete.
The purpose of the transaction is to support Undo and Redo functionality.Notes to Inheritors:
When you override this method, it should set the value of the property by invoking the appropriate "SetMyProperty" method that you need to implement. If the value specified is not valid, the component should throw an exception, which is passed up. You should design the property so that a "GetMyProperty" method (that you have implemented) following a "SetMyProperty" method returns the value passed in when the "SetMyProperty" method does not throw an exception.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.