SharepointListAdapterObject Interface
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Representa uma conexão com uma lista do SharePoint ou biblioteca de documentos.
public interface class SharepointListAdapterObject : Microsoft::Office::Interop::InfoPath::SemiTrust::SharepointListAdapter
[System.Runtime.InteropServices.Guid("096cd69a-0786-11d1-95fa-0080c78ee3bb")]
public interface SharepointListAdapterObject : Microsoft.Office.Interop.InfoPath.SemiTrust.SharepointListAdapter
type SharepointListAdapterObject = interface
interface SharepointListAdapter
Public Interface SharepointListAdapterObject
Implements SharepointListAdapter
- 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.SemiTrust.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.SemiTrust.DataAdapters.Item(System.Object)"></xref> property of the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.SemiTrust.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.SemiTrust.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, consulteSharepointListAdapter.
O uso dos membros da interface SharepointListAdapter fornece compatibilidade com o InfoPath 2003. Para usar novos membros que foram adicionados ao modelo de SharepointListAdapter2 objeto no Microsoft InfoPath 2010, você deve lançar o objeto retornado pelo objeto para o tipo SharepointListAdapter2. Para obter mais informações, consulte Como usar membros do modelo de objeto que não são compatíveis com o InfoPath 2003.
O objeto SharePointListAdapter representa o adaptador de dados do 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) |