SharepointListAdapterObject インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SharePoint リストまたはドキュメント ライブラリへの接続を表します。
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
- 派生
- 属性
- 実装
例
<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>
注釈
この型は、COM の相互運用性を得るためにマネージ コードが必要とするコクラスのラッパーです。 この型を使用して、このコクラスによって実装される COM インターフェイスにアクセスします。 COM インターフェイスの詳細については、そのメンバーの説明へのリンクを参照してくださいSharepointListAdapter2。
SharePointListAdapter オブジェクトは、SharePoint リストまたはドキュメント ライブラリからデータを取得するための Office 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) |
適用対象
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示