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 (Object)

Clears the properties and events for the specified component from the cache.

[Visual Basic]
Overloads Public Shared Sub Refresh( _
   ByVal component As Object _
)
[C#]
public static void Refresh(
   object component
);
[C++]
public: static void Refresh(
   Object* component
);
[JScript]
public static function Refresh(
   component : Object
);

Parameters

component
A component whose properties or events have changed.

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