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

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

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

Parameters

type
A Type that represents the type whose properties or events have changed.

Remarks

Call this version of this method only when you do not have an instance of the object.

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