Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a new SelectionContainer object with the ability to restrict user control over the SelectableObjects and SelectedObjects collections.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
selectableReadOnly As Boolean, _
selectedReadOnly As Boolean _
)
public SelectionContainer(
bool selectableReadOnly,
bool selectedReadOnly
)
public:
SelectionContainer(
bool selectableReadOnly,
bool selectedReadOnly
)
new :
selectableReadOnly:bool *
selectedReadOnly:bool -> SelectionContainer
public function SelectionContainer(
selectableReadOnly : boolean,
selectedReadOnly : boolean
)
Parameters
selectableReadOnly
Type: System.BooleanIf true, a request to change the SelectableObjects throws a NotSupportedException. If false, a request to change the SelectableObjects is handled normally.
selectedReadOnly
Type: System.BooleanIf true, a request to change the SelectedObjects throws a NotSupportedException. If false, a request to change the SelectedObjects is handled normally.
Remarks
The values of the selectableReadOnly and selectedReadOnly parameters only affect external requests through ISelectionContainer.
.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.