Compartilhar via


GlobalObjectCollection Constructors

Definition

Overloads

GlobalObjectCollection()

Initializes a new instance of a strongly-typed collection of global objects.

GlobalObjectCollection(GlobalObject[])

Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects.

GlobalObjectCollection(GlobalObjectCollection)

Initializes a new instance of a strongly-typed collection of global objects initially populated by the array items.

GlobalObjectCollection(GlobalObject[], Boolean)

Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects.

GlobalObjectCollection(GlobalObjectCollection, Boolean)

Initializes a new instance of global objects for the specified global object collection for the specified read/write access.

GlobalObjectCollection()

Initializes a new instance of a strongly-typed collection of global objects.

public:
 GlobalObjectCollection();
public:
 GlobalObjectCollection();
 GlobalObjectCollection();
public GlobalObjectCollection ();
Public Sub New ()

Applies to

GlobalObjectCollection(GlobalObject[])

Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects.

public:
 GlobalObjectCollection(cli::array <Microsoft::VisualStudio::Shell::Design::GlobalObject ^> ^ items);
public GlobalObjectCollection (Microsoft.VisualStudio.Shell.Design.GlobalObject[] items);
new Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection : Microsoft.VisualStudio.Shell.Design.GlobalObject[] -> Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Public Sub New (items As GlobalObject())

Parameters

items
GlobalObject[]

An array of GlobalObject objects to initially populate the collection.

Applies to

GlobalObjectCollection(GlobalObjectCollection)

Initializes a new instance of a strongly-typed collection of global objects initially populated by the array items.

public:
 GlobalObjectCollection(Microsoft::VisualStudio::Shell::Design::GlobalObjectCollection ^ items);
public GlobalObjectCollection (Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection items);
new Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection : Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection -> Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Public Sub New (items As GlobalObjectCollection)

Parameters

items
GlobalObjectCollection

A collection of GlobalObject objects to initially populate the collection.

Applies to

GlobalObjectCollection(GlobalObject[], Boolean)

Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects.

public:
 GlobalObjectCollection(cli::array <Microsoft::VisualStudio::Shell::Design::GlobalObject ^> ^ items, bool readOnly);
public GlobalObjectCollection (Microsoft.VisualStudio.Shell.Design.GlobalObject[] items, bool readOnly);
new Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection : Microsoft.VisualStudio.Shell.Design.GlobalObject[] * bool -> Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Public Sub New (items As GlobalObject(), readOnly As Boolean)

Parameters

items
GlobalObject[]

An array of GlobalObject objects to initially populate the collection.

readOnly
Boolean

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

Applies to

GlobalObjectCollection(GlobalObjectCollection, Boolean)

Initializes a new instance of global objects for the specified global object collection for the specified read/write access.

public:
 GlobalObjectCollection(Microsoft::VisualStudio::Shell::Design::GlobalObjectCollection ^ items, bool readOnly);
public GlobalObjectCollection (Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection items, bool readOnly);
new Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection : Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection * bool -> Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Public Sub New (items As GlobalObjectCollection, readOnly As Boolean)

Parameters

items
GlobalObjectCollection

A collection of objects to initially populate the collection.

readOnly
Boolean

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

Applies to