Compartilhar via


SharepointListAdapterObject Interface

Definição

Representa uma conexão com uma lista do SharePoint ou biblioteca de documentos.

public interface class SharepointListAdapterObject : Microsoft::Office::Interop::InfoPath::SharepointListAdapter
[System.Runtime.InteropServices.Guid("096CD69A-0786-11D1-95FA-0080C78EE3BB")]
public interface SharepointListAdapterObject : Microsoft.Office.Interop.InfoPath.SharepointListAdapter
type SharepointListAdapterObject = interface
    interface SharepointListAdapter
Public Interface SharepointListAdapterObject
Implements SharepointListAdapter
Derivado
Atributos
Implementações

Exemplos

<span class="label">SharepointListAdapter</span> SPList = ((<span class="label">SharepointListAdapter</span>)thisXDocument.DataAdapters[“SharePoint list”]);
thisXDocument.UI.Alert(SPList.SiteUrl);
SPList.Query();
  <p>In the following example, a reference to the <strong>SharePointListAdapter</strong> object is accessed through the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.DataObject.QueryAdapter"></xref> property of a data adapter object by passing the name of the data adapter object to the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.DataAdapters.Item(System.Object)"></xref> property of the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.DataAdaptersCollection"></xref> collection:</p>
<span class="label">SharepointListAdapter</span> adapter;
adapter = (<span class="label">SharepointListAdapter</span>) thisXDocument.DataAdapters["Announcements"];
  <p>After the reference has been set, you can use the methods of the <strong>SharePointListAdapter</strong> object as shown in the following example, which re-queries the SharePoint list or library to update the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.DataObject.DOM"></xref> property of the data adapter object:</p>
  <code>adapter.Query();</code>

Comentários

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. Para obter informações sobre a interface COM, incluindo um link para descrições de seus membros, consulteSharepointListAdapter2.

O objeto SharePointListAdapter representa o adaptador de dados do Office InfoPath para recuperar dados de uma lista do SharePoint ou biblioteca de documentos.

Para uma fonte de dados secundária, o objeto SharePointListAdapter é acessível por meio da QueryAdapter propriedade do DataSourceObject objeto. Os objetos do adaptador de dados são acessíveis por meio da DataAdapters propriedade do XDocument objeto.

Propriedades

Name

Obtém o nome de um SharepointListAdapterObject objeto.

(Herdado de SharepointListAdapter)
QueryAllowed

Obtém um valor que sempre retorna true, correspondente ao atributo queryAllowed no arquivo de definição de formulário (.xsf).

(Herdado de SharepointListAdapter)
SiteUrl

Obtém a URL (Uniform Resource Locator) do site Windows SharePoint Services que o SharepointListAdapterObject objeto consultará.

(Herdado de SharepointListAdapter)
SubmitAllowed

Obtém um valor correspondente ao atributo submitAllowed no arquivo de definição de formulário (.xsf).

(Herdado de SharepointListAdapter)

Métodos

Query()

Lê dados do adaptador de dados associado.

(Herdado de SharepointListAdapter)
Submit()

Disponível para o , mas, como o SharepointListAdapterObjectobjeto SharePointListAdapter está disponível apenas para receber dados, o método sempre gerará um erro em tempo de execução quando ele for chamado nesse objeto.

(Herdado de SharepointListAdapter)

Aplica-se a