ConsumerConnectionPoint.SupportsConnection Method (Control, ConnectionInterfaceCollection)
Determines whether a consumer connection point is currently capable of establishing a connection.
Assembly: System.Web (in System.Web.dll)
public virtual bool SupportsConnection( Control control, ConnectionInterfaceCollection secondaryInterfaces )
The consumer control associated with the ConsumerConnectionPoint.
A ConnectionInterfaceCollection of any secondary interfaces that participate in a connection.
Return ValueType: System.Boolean
true if a connection point can currently establish a connection; otherwise, false. The default is true.
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.method as implemented always returns true in all cases for the
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 method, providing a custom implementation to determine when the connection point is ready to support connections.
Available since 2.0