SharepointListQueryConnection.SiteUrl プロパティ
SharepointListQueryConnection オブジェクトと関連付けられた Windows SharePoint Services サイトの URL (Uniform Resource Locator) を表す System.Uri オブジェクトを取得します。
名前空間: Microsoft.Office.InfoPath
アセンブリ: Microsoft.Office.InfoPath (microsoft.office.infopath.dll 内)
構文
'宣言
Public MustOverride ReadOnly Property SiteUrl As Uri
'使用
Dim instance As SharepointListQueryConnection
Dim value As Uri
value = instance.SiteUrl
public abstract Uri SiteUrl { get; }
プロパティ値
SharepointListQueryConnection オブジェクトと関連付けられた Windows SharePoint Services サイトの URL (Uniform Resource Locator) を表す System.Uri オブジェクト。
コメント
SiteUrl プロパティによって返される System.Uri オブジェクトが提供するさまざまなプロパティやメソッドを使用すると、SharePoint サイトの URL に関する情報を提供できます。
このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。
この型またはメンバは、Microsoft Office InfoPath 2007 または Web ブラウザで開いているフォームで実行されているコードからのみアクセスできます。
例
次の例では、SiteUrl プロパティによって返される値を文字列変数に設定しています。
string spSiteURL = spConnection.SiteUrl.ToString();
Dim spSiteURL As String input = _
string spSiteURL = spConnection.SiteUrl.ToString()
関連項目
参照
SharepointListQueryConnection クラス
SharepointListQueryConnection のメンバ
Microsoft.Office.InfoPath 名前空間