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
The consumer control associated with the ConsumerConnectionPoint.
A ConnectionInterfaceCollection of any secondary interfaces that participate in a connection.
Return Valuetrue 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.