Share via


SharepointListAdapterObject インターフェイス

定義

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
属性
実装

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

注釈

この型は、COM の相互運用性を得るためにマネージ コードが必要とするコクラスのラッパーです。 この型を使用して、このコクラスによって実装される COM インターフェイスにアクセスします。 COM インターフェイスの詳細については、そのメンバーの説明へのリンクを参照してくださいSharepointListAdapter

SharepointListAdapter インターフェイスのメンバーを使用すると、InfoPath 2003 との互換性が提供されます。 Microsoft InfoPath 2010でオブジェクト モデルに追加された新しいメンバーをSharepointListAdapter2使用するには、オブジェクトによって返されるオブジェクトを SharepointListAdapter2 型にキャストする必要があります。 詳細については、「[方法] InfoPath 2003 と互換性のないオブジェクト モデルのメンバーを使用する方法」を参照してください。

SharePointListAdapter オブジェクトは、SharePoint リストまたはドキュメント ライブラリからデータを取得するための InfoPath データ アダプターを表します。

セカンダリ データ ソースの場合、SharePointListAdapter オブジェクトには オブジェクトの DataSourceObject プロパティをQueryAdapter使用してアクセスできます。 データ アダプター オブジェクトには、 オブジェクトの XDocument プロパティをDataAdapters使用してアクセスできます。

プロパティ

Name

オブジェクトの名前を SharepointListAdapterObject 取得します。

(継承元 SharepointListAdapter)
QueryAllowed

フォーム定義ファイル (.xsf) 内の queryAllowed 属性に対応して、常に true を返す値を取得します。

(継承元 SharepointListAdapter)
SiteUrl

オブジェクトがクエリを実行するWindows SharePoint Services サイトの Uniform Resource Locator (URL) をSharepointListAdapterObject取得します。

(継承元 SharepointListAdapter)
SubmitAllowed

フォーム定義ファイル (.xsf) 内の submitAllowed 属性に対応する値を取得します。

(継承元 SharepointListAdapter)

メソッド

Query()

関連付けられたデータ アダプターからデータを読み取ります。

(継承元 SharepointListAdapter)
Submit()

では SharepointListAdapterObject使用できますが、 SharePointListAdapter オブジェクトはデータの受信にのみ使用できるため、そのオブジェクトで呼び出されると、メソッドは常に実行時エラーを生成します。

(継承元 SharepointListAdapter)

適用対象