편집

다음을 통해 공유


SharePointListRWQueryConnection.SiteUrl Property

Definition

Gets or sets a Uri object that represents the URL of the SharePoint Foundation site associated with the Microsoft.Office.InfoPath.SharepointListRWQueryConnection object.

public:
 abstract property Uri ^ SiteUrl { Uri ^ get(); void set(Uri ^ value); };
public abstract Uri SiteUrl { get; set; }
member this.SiteUrl : Uri with get, set
Public MustOverride Property SiteUrl As Uri

Property Value

Uri

An object that represents the URL of the SharePoint Foundation site.

Examples

The following code example sets a string variable to the value returned by the SiteUrl property.

SharePointListRWQueryConnection spConnection = (SharePointListRWQueryConnection)this.DataConnections["Contacts"];
string spSiteURL = spConnection.SiteUrl.ToString();
Dim spConnection As SharePointListRWQueryConnection = _
   DirectCast(Me.DataConnections("Contacts"), _
   SharePointListRWQueryConnection)
Dim spSiteURL As String = _
   spConnection.SiteUrl.ToString()

Remarks

The Uri object returned by the SiteUrl property provides a variety of properties and methods that can be used to get information about the URL of the SharePoint site.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

Applies to