Share via


DataFormConsumerConnectionPoint constructor

Initializes a new instance of the DataFormConsumerConnectionPoint class with the specified parameters.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    callbackMethod As MethodInfo, _
    interfaceType As Type, _
    controlType As Type, _
    displayName As String, _
    id As String, _
    allowsMultipleConnections As Boolean _
)
'Usage
Dim callbackMethod As MethodInfo
Dim interfaceType As Type
Dim controlType As Type
Dim displayName As String
Dim id As String
Dim allowsMultipleConnections As Boolean

Dim instance As New DataFormConsumerConnectionPoint(callbackMethod, _
    interfaceType, controlType, displayName, _
    id, allowsMultipleConnections)
public DataFormConsumerConnectionPoint(
    MethodInfo callbackMethod,
    Type interfaceType,
    Type controlType,
    string displayName,
    string id,
    bool allowsMultipleConnections
)

Parameters

  • callbackMethod
    Type: System.Reflection.MethodInfo

    The method in the consumer control that returns an interface instance to consumers in order to establish a connection.

  • interfaceType
    Type: System.Type

    The type of the interface that the consumer receives from a provider.

  • controlType
    Type: System.Type

    The type of the consumer control with which the DataFormConsumerConnectionPoint is associated.

  • displayName
    Type: System.String

    A friendly display name for the DataFormConsumerConnectionPoint that appears to users in the connection user interface (UI).

  • id
    Type: System.String

    A unique identifier for the DataFormConsumerConnectionPoint.

  • allowsMultipleConnections
    Type: System.Boolean

    true to allow the DataFormConsumerConnectionPoint to have multiple simultaneous connections with providers; otherwise, false.

See also

Reference

DataFormConsumerConnectionPoint class

DataFormConsumerConnectionPoint members

Microsoft.SharePoint.WebPartPages namespace