Partager via


BdcQueryConnection Class

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.

Inheritance Hierarchy

System.Object
  Microsoft.Office.InfoPath.DataConnection
    Microsoft.Office.InfoPath.BdcQueryConnection

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustInherit Class BdcQueryConnection _
    Inherits DataConnection
'Usage
Dim instance As BdcQueryConnection
public abstract class BdcQueryConnection : DataConnection

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

BdcQueryConnection Members

Microsoft.Office.InfoPath Namespace