SPSite.Url 属性

Gets the full URL to the root Web site of the site collection, including host name, port number, and path.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property Url As String
    Get
用法
Dim instance As SPSite
Dim value As String

value = instance.Url
public string Url { get; }

属性值

类型:System.String
A string that contains the URL.

备注

The Url property contains a string such as http://Host_Name:80/sites/Site_Name. Note that the URL does not end with a slash ("/").

另请参阅

引用

SPSite 类

SPSite 成员

Microsoft.SharePoint 命名空间