NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeDescriptor.Refresh (Module)

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
);

Parameters

module
The Module that represents the module to refresh. Each Type in this module will be refreshed.

Remarks

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.

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.Refresh Overload List | TypeDescriptor | EventDescriptor | PropertyDescriptor | AddOnRefresh | RemoveOnRefresh | Module