Clears the properties and events for the specified module from the cache.
[Visual Basic] Overloads Public Shared Sub Refresh( _ ByVal module As Module _ ) [C#] public static void Refresh( Module module ); [C++] public: static void Refresh( Module* module ); [JScript] public static function Refresh( module : Module );
Properties and events are cached by TypeDescriptor for speed. Typically, they are constant for the lifetime of an object. However, extender providers and designers can change the set of properties on an object. If they do, they should call this method to clear the object's property and event descriptors. This method is used only at design time. It is not used during run time.This method will also raise an AddOnRefresh event to notify all classes that want to be notified when a component's property set changes.
TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.Refresh Overload List | TypeDescriptor | EventDescriptor | PropertyDescriptor | AddOnRefresh | RemoveOnRefresh | Module