Edit

Share via


BdcQueryConnection Class

Definition

Represents a data connection for retrieving data from an external list on a server that runs Microsoft SharePoint Foundation 2010 or Microsoft SharePoint Server 2010.

public ref class BdcQueryConnection abstract : Microsoft::Office::InfoPath::DataConnection
public abstract class BdcQueryConnection : Microsoft.Office.InfoPath.DataConnection
type BdcQueryConnection = class
    inherit DataConnection
Public MustInherit Class BdcQueryConnection
Inherits DataConnection
Inheritance
BdcQueryConnection

Remarks

An external list is an external data source that is registered in the Business Data Connectivity service (BDC) on a server that runs SharePoint Foundation 2010 or SharePoint Server 2010. An external list is based on an external content type that specifies how to connect to and work with the data from an external business entity, such as a SQL Server database or Web service. After you create an external list, you can generally use its data like any other SharePoint list. For more information about how to create external content types and external lists, see Building Solutions Using the Presentation Features of Business Connectivity Services

The BdcQueryConnection class provides properties that can be used to get information about the data connection. It also provides the inherited Execute() method that can be used to execute the query operation that was defined declaratively when the data connection was created.

Constructors

BdcQueryConnection()

Properties

EntityName

Gets the name of the external content type that defines connectivity information for the data source accessed from the external list.

EntityNamespace

Gets the namespace of the external content type that defines connectivity information for the data source accessed from the external list.

LobSystemInstance

Gets the name of the system instance to which the external content type connects to provide data to the external list.

Name

Gets the name of the data connection.

(Inherited from DataConnection)
SpecificFinder

Gets the name of the operation defined in the external content type for querying the data source that contains the items displayed in the external list.

Methods

Execute()

Depending on which ConnectionTypeConnection class it is called from, executes a submit or query operation on the data connection using the declaratively defined values for the submitted data, query parameters, or data to retrieve.

(Inherited from DataConnection)

Applies to