SharepointListAdapterObject Interface

Définition

Représente une connexion à une liste ou une bibliothèque de documents SharePoint.

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
Attributs
Implémente

Exemples

<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>

Remarques

Ce type est le wrapper d’une coclasse requise par le code managé pour l’interopérabilité COM. Utilisez ce type pour accéder aux membres de l’interface COM implémentée par cette coclasse. Pour plus d’informations sur l’interface COM, y compris un lien vers les descriptions de ses membres, consultezSharepointListAdapter .

L'utilisation des membres de l'interface SharepointListAdapter permet de garantir la compatibilité avec InfoPath 2003. Pour utiliser de nouveaux membres ajoutés au SharepointListAdapter2 modèle objet dans Microsoft InfoPath 2010, vous devez convertir l’objet retourné par l’objet en type SharepointListAdapter2. Pour plus d'informations, consultez Procédure : utiliser les membres du modèle objet qui ne sont pas compatibles avec InfoPath 2003.

L’objet SharePointListAdapter représente l’adaptateur de données InfoPath pour récupérer des données à partir d’une liste ou d’une bibliothèque de documents SharePoint.

Pour une source de données secondaire, l’objet SharePointListAdapter est accessible via la QueryAdapter propriété de l’objet DataSourceObject . Les objets adaptateur de données sont accessibles via la DataAdapters propriété de l’objet XDocument .

Propriétés

Name

Obtient le nom d’un SharepointListAdapterObject objet.

(Hérité de SharepointListAdapter)
QueryAllowed

Obtient une valeur qui renvoie toujours true, correspondant à l'attribut queryAllowed du fichier de définition du formulaire (.xsf).

(Hérité de SharepointListAdapter)
SiteUrl

Obtient l’URL (Uniform Resource Locator) du site Windows SharePoint Services que l’objet SharepointListAdapterObject interrogera.

(Hérité de SharepointListAdapter)
SubmitAllowed

Obtient une valeur correspondant à l'attribut submitAllowed du fichier de définition du formulaire (.xsf).

(Hérité de SharepointListAdapter)

Méthodes

Query()

Lit les données de l'adaptateur de données associé.

(Hérité de SharepointListAdapter)
Submit()

Disponible pour le , mais, étant donné que l’objet SharepointListAdapterObjectSharePointListAdapter est disponible pour recevoir des données uniquement, la méthode génère toujours une erreur d’exécution lorsqu’elle est appelée sur cet objet.

(Hérité de SharepointListAdapter)

S’applique à