Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ProviderConnectionPointCollection Constructor (ICollection)

Note: This constructor is new in the .NET Framework version 2.0.

Initializes a new instance of the ProviderConnectionPointCollection class using the specified collection of provider connection points.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public ProviderConnectionPointCollection (
	ICollection connectionPoints
)
public ProviderConnectionPointCollection (
	ICollection connectionPoints
)
public function ProviderConnectionPointCollection (
	connectionPoints : ICollection
)

Parameters

connectionPoints

An ICollection of ProviderConnectionPoint objects used to create the collection.

Exception typeCondition

ArgumentNullException

connectionPoints is a null reference (Nothing in Visual Basic).

InvalidOperationException

The collection contains a null connection point.

- or -

There are duplicate IDs in the collection of connection points.

This constructor creates a new instance of the ProviderConnectionPointCollection class and adds the connection points contained in the connectionPoints parameter.

You can use this constructor to create your own collection object of provider connection points, by creating an ICollection collection of existing ProviderConnectionPoint objects, and then passing that collection to the ProviderConnectionPointCollection(ICollection) constructor. However, you rarely need to create your own collection unless you are extending controls, because the WebPartManager control provides the necessary methods for most common operations involving provider connection points, including the GetProviderConnectionPoints method.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft