Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SupportsConnection Method
Collapse the table of content
Expand the table of content

ConsumerConnectionPoint.SupportsConnection Method

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

Determines whether a consumer connection point is currently capable of establishing a connection.

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

public virtual bool SupportsConnection (
	Control control,
	ConnectionInterfaceCollection secondaryInterfaces
)
public boolean SupportsConnection (
	Control control, 
	ConnectionInterfaceCollection secondaryInterfaces
)
public function SupportsConnection (
	control : Control, 
	secondaryInterfaces : ConnectionInterfaceCollection
) : boolean

Parameters

control

The consumer control associated with the ConsumerConnectionPoint.

secondaryInterfaces

A ConnectionInterfaceCollection of any secondary interfaces that participate in a connection.

Return Value

true if a connection point can currently establish a connection; otherwise, false. The default is true.

The SupportsConnection method as implemented always returns true in all cases for the ConsumerConnectionPoint class. The intent for this method is to have it check on the state of control and secondaryInterfaces at certain critical points to determine whether a ConsumerConnectionPoint object is presently able to create a connection.

There can be scenarios where control is in a state that would make it impossible to form a connection, or where secondaryInterfaces must exist before a connection can be formed. In such cases, developers can inherit from the ConsumerConnectionPoint class, and override the SupportsConnection method, providing a custom implementation to determine when the connection point is ready to support connections.

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