GlobalObjectCollection Constructor (GlobalObjectCollection, Boolean)
Initializes a new instance of global objects for the specified global object collection for the specified read/write access.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Sub New ( _
items As GlobalObjectCollection, _
readOnly As Boolean _
)
public GlobalObjectCollection(
GlobalObjectCollection items,
bool readOnly
)
public:
GlobalObjectCollection(
GlobalObjectCollection^ items,
bool readOnly
)
new :
items:GlobalObjectCollection *
readOnly:bool -> GlobalObjectCollection
public function GlobalObjectCollection(
items : GlobalObjectCollection,
readOnly : boolean
)
Parameters
items
Type: Microsoft.VisualStudio.Shell.Design.GlobalObjectCollectionA collection of objects to initially populate the collection.
readOnly
Type: BooleanIf true, the collection cannot be modified. The default value for readOnly if not passed is false.
.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.