Condividi tramite


ProvideToolboxItemsAttribute.NeedsCallBackAfterReset Property

Definition

Setting this to true will force a ToolboxInitialized event after each toolbox reset. This can be used when developing your package to force the toolbox to ask the list of items to the package everytime (in case it has changed). For shipped products, it is best to leave it to false so that the cache can be used for better performances. Some scenario (such as item list that cannot cannot be persisted to the cache) may need to have this flag set to true

public:
 property bool NeedsCallBackAfterReset { bool get(); void set(bool value); };
public:
 property bool NeedsCallBackAfterReset { bool get(); void set(bool value); };
public bool NeedsCallBackAfterReset { get; set; }
member this.NeedsCallBackAfterReset : bool with get, set
Public Property NeedsCallBackAfterReset As Boolean

Property Value

true if the ToolboxInitialized event should be raised after each toolbox reset, otherwise false.

Remarks

This setting can be used when developing your package to force the toolbox to query the list of items to the package every time it is reset, in case something has changed. For shipped products, it is best to leave the setting to false so that the cache can be used for better performances. Some scenario (such as item lists that cannot be persisted to the cache) may need to have this flag set to true.

Applies to