Compartilhar via


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

  • readOnly
    Type: Boolean

    If true, the collection cannot be modified. The default value for readOnly if not passed is false.

.NET Framework Security

See Also

Reference

GlobalObjectCollection Class

GlobalObjectCollection Overload

Microsoft.VisualStudio.Shell.Design Namespace