ProvideToolboxItemsAttribute.NeedsCallBackAfterReset Property
Gets or sets whether the ToolboxInitialized event should be raised after each toolbox reset.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
‘선언
Public Property NeedsCallBackAfterReset As Boolean
Get
Set
‘사용 방법
Dim instance As ProvideToolboxItemsAttribute
Dim value As Boolean
value = instance.NeedsCallBackAfterReset
instance.NeedsCallBackAfterReset = value
public bool NeedsCallBackAfterReset { get; set; }
public:
property bool NeedsCallBackAfterReset {
bool get ();
void set (bool value);
}
member NeedsCallBackAfterReset : bool with get, set
function get NeedsCallBackAfterReset () : boolean
function set NeedsCallBackAfterReset (value : boolean)
Property Value
Type: System.Boolean
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ProvideToolboxItemsAttribute Class