SharePointListAdapterRWObject インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SharePoint リストまたはドキュメント ライブラリからデータを取得するためのデータ接続を表します。
public interface class SharePointListAdapterRWObject : Microsoft::Office::Interop::InfoPath::SemiTrust::SharePointListAdapterRW
[System.Runtime.InteropServices.Guid("096cd635-0786-11d1-95fa-0080c78ee3bb")]
public interface SharePointListAdapterRWObject : Microsoft.Office.Interop.InfoPath.SemiTrust.SharePointListAdapterRW
type SharePointListAdapterRWObject = interface
interface SharePointListAdapterRW
Public Interface SharePointListAdapterRWObject
Implements SharePointListAdapterRW
- 属性
- 実装
例
<span class="label">SharePointListAdapterRWObject</span> SPList = ((<span class="label">SharePointListAdapterRWObject</span>)thisXDocument.DataAdapters["SharePoint list"]);
thisXDocument.UI.Alert(SPList.SiteUrl);
SPList.Query();
<p>In the following example, a reference to the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.SemiTrust.SharePointListAdapterRW"></xref> 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">SharePointListAdapterRW</span> adapter;
adapter = (<span class="label">SharePointListAdapterRW</span>) thisXDocument.DataAdapters["Announcements"];
<p>After the reference has been set, you can use the methods of the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.SemiTrust.SharePointListAdapterRW"></xref> object as shown in the following example, which calls the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath.SemiTrust.SharePointListAdapterRW.Query"></xref> method to re-query 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 インターフェイスの詳細と、そのメンバの説明へのリンクについては、以下を参照してください。SharePointListAdapterRW
注: クラスによって実装されたメンバーでSharePointListAdapterRWObject記述されたコードは、InfoPath 2003 または InfoPath 2007 で作成された SharePoint リストまたはドキュメント ライブラリへのデータ接続、InfoPath 2007 フォーム テンプレートの 1 つで作成された新しいフォーム テンプレート内のデータ接続、または [データ Connections] ダイアログ ボックスの [以前のバージョンに変換されたデータ接続] と互換性がありません。 以前のバージョンの InfoPath との互換性を維持する必要がない場合、クラスによってSharePointListAdapterRWObject実装されたメンバーでコードを記述する場合は、[データ Connections] ダイアログ ボックスの [現在のバージョンに変換] ボタンを使用してデータ接続を変換できます。
オブジェクトは SharePointListAdapterRW 、SharePoint リストまたはドキュメント ライブラリから取得するための Microsoft InfoPath データ接続を表します。
セカンダリ データ ソースの場合、SharePointListAdapterRWオブジェクトには オブジェクトの DataSourceObject プロパティをQueryAdapter使用してアクセスできます。 データ アダプター オブジェクトには、 オブジェクトの XDocument プロパティをDataAdapters使用してアクセスできます。
プロパティ
ContentTypeId |
オブジェクトに関連付 SharePointListAdapterRWObject けられている SharePoint リストのコンテンツ タイプ ID を取得または設定します。 (継承元 SharePointListAdapterRW) |
ListId |
オブジェクトに関連付 SharePointListAdapterRWObject けられている SharePoint リストのリスト ID を取得または設定します。 (継承元 SharePointListAdapterRW) |
Name |
オブジェクトの名前を Microsoft.Office.Interop.InfoPath.SemiTrust.SharepointListAdapterRWObject 取得します。 (継承元 SharePointListAdapterRW) |
QueryAllowed |
常に true を返す値を取得します。この値は、フォーム定義ファイル (.xsf) の queryAllowed 属性の値に対応しています。 (継承元 SharePointListAdapterRW) |
SiteUrl |
オブジェクトによって表されるデータ接続がクエリを実行する SharePoint Foundation サイトの Uniform Resource Locator (URL) を Microsoft.Office.Interop.InfoPath.SemiTrust.SharepointListAdapterRWObject 取得します。 (継承元 SharePointListAdapterRW) |
SubmitAllowed |
送信操作が許可されているかどうかを指定する値を取得します。この値は、フォーム定義ファイル (.xsf) の submitAllowed の値に対応しています。 (継承元 SharePointListAdapterRW) |
メソッド
Query() |
関連付けられているデータ接続からデータを読み取ります。 (継承元 SharePointListAdapterRW) |
Submit() |
関連付けられているデータ接続にデータを送信します。 (継承元 SharePointListAdapterRW) |
適用対象
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示