次の方法で共有


SharepointListAdapter.SiteUrl プロパティ

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

このプロパティは、CLS に準拠していません。  

名前空間: Microsoft.Office.Interop.InfoPath.SemiTrust
アセンブリ: Microsoft.Office.Interop.InfoPath.SemiTrust (microsoft.office.interop.infopath.semitrust.dll 内)

構文

'宣言
<DispIdAttribute(5)> _
ReadOnly Property SiteUrl As String
'使用
Dim instance As SharepointListAdapter
Dim value As String

value = instance.SiteUrl
[DispIdAttribute(5)] 
string SiteUrl { get; }

コメント

メモ重要 :

このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。

次の例では、SharePoint のリスト "SharePoint list" への既存のデータ接続SiteUrl プロパティがメッセージ ボックスに表示されます。

SharepointListAdapter SPList = ((SharepointListAdapter)thisXDocument.DataAdapters[“SharePoint list”]);
thisXDocument.UI.Alert(SPList.SiteUrl);

関連項目

参照

SharepointListAdapter インターフェイス
SharepointListAdapter のメンバ
Microsoft.Office.Interop.InfoPath.SemiTrust 名前空間