Gets the Type of the server control with which a connection point is associated.
Assembly: System.Web (in System.Web.dll)
The value of the property is often the WebPart type. However, because any type of user control or server control can participate in connections if it is properly enabled and placed in a WebPartZoneBase zone, the property can return one of these other server control types as well.
When server controls that are not WebPart controls are placed in a WebPartZoneBase zone, they are wrapped with a GenericWebPart object at run time so they can function as WebPart controls and participate in connections. But when such controls are involved in connections, the property value does not return the GenericWebPart type; it returns the type of the GenericWebPart object's child control, which is the type of the server or user control.
The following code example demonstrates the use of the property on both ProviderConnectionPoint and ConsumerConnectionPoint objects. This code example shows only the Web page that contains the code to access the property; for the full code required to run the example, see the Example section of the ConnectionPoint class overview.
The code in the Button2_Click method of the Web page accesses the property on each of the connection point objects and writes each value to a label. Execute the code by clicking the Connection Point Details button after the page is loaded in a browser.