Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InterfaceType Property

ConnectionPoint::InterfaceType Property

Gets the type of the interface used by a connection point.

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

property Type^ InterfaceType {
	Type^ get ();

Property Value

Type: System::Type
A Type that corresponds to the interface type provided or consumed by a control.

The InterfaceType property indicates what type of interface a connection point uses. This can help to determine whether two controls are compatible and able to form a connection. If the provider connection point's InterfaceType is different from the consumer connection point's InterfaceType, then the two controls are incompatible (meaning that they cannot be directly connected without a transformer), and a WebPartTransformer object must be used to establish a connection.

The following code example demonstrates the use of the InterfaceType 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 InterfaceType 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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft