SelectionContainer Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This constructor initializes a new SelectionContainer object on creation.
SelectionContainer() |
Initializes a new SelectionContainer object. The overload provides the ability to restrict user control over the SelectableObjects and SelectedObjects collections. |
SelectionContainer(Boolean, Boolean) |
Creates a new SelectionContainer object with the ability to restrict user control over the SelectableObjects and SelectedObjects collections. |
Calling the constructor of the SelectionContainer class creates a selection container, but does not populate it.
Initializes a new SelectionContainer object. The overload provides the ability to restrict user control over the SelectableObjects and SelectedObjects collections.
public:
SelectionContainer();
public:
SelectionContainer();
SelectionContainer();
public SelectionContainer();
Public Sub New ()
Remarks
Calling the constructor of the SelectionContainer class creates a selection container, but does not populate it.
Applies to
Visual Studio SDK 2022 およびその他のバージョン
製品 | バージョン |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |
Creates a new SelectionContainer object with the ability to restrict user control over the SelectableObjects and SelectedObjects collections.
public:
SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
public:
SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
public SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
new Microsoft.VisualStudio.Shell.SelectionContainer : bool * bool -> Microsoft.VisualStudio.Shell.SelectionContainer
Public Sub New (selectableReadOnly As Boolean, selectedReadOnly As Boolean)
Parameters
- selectableReadOnly
- Boolean
Specifies if the collection of the selectable objects is read only.
- selectedReadOnly
- Boolean
Specifies if the selection is read only.
Remarks
The values of the selectableReadOnly
and selectedReadOnly
parameters only affect external requests through ISelectionContainer.
Applies to
Visual Studio SDK 2022 およびその他のバージョン
製品 | バージョン |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |