DiagramDocView.UpdateToolboxFilters Method
Updates the collection of Toolbox filters to use with the active diagram view.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Protected Function UpdateToolboxFilters ( _
filterToUpdate As DiagramDocView.ToolboxItemFilterType, _
calculateChanges As Boolean _
) As Boolean
protected bool UpdateToolboxFilters(
DiagramDocView.ToolboxItemFilterType filterToUpdate,
bool calculateChanges
)
protected:
bool UpdateToolboxFilters(
DiagramDocView::ToolboxItemFilterType filterToUpdate,
bool calculateChanges
)
member UpdateToolboxFilters :
filterToUpdate:DiagramDocView.ToolboxItemFilterType *
calculateChanges:bool -> bool
protected function UpdateToolboxFilters(
filterToUpdate : DiagramDocView.ToolboxItemFilterType,
calculateChanges : boolean
) : boolean
Parameters
filterToUpdate
Type: Microsoft.VisualStudio.Modeling.Shell.DiagramDocView.ToolboxItemFilterTypeThe collections of filters to update.
calculateChanges
Type: System.Booleantrue to check the filter collections have changed; false to assume that the filter collections have changed.
Return Value
Type: System.Boolean
true if the collection of Toolbox filters was updated; otherwise, false.
Remarks
This method does not refresh the Toolbox. It updates the Toolbox filters but does not apply them. Clients can refresh the Toolbox based on the return value.
.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.