Web.ServerRelativeUrl 属性
Gets or sets the server-relative URL for the Web site.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Property ServerRelativeUrl As String
Get
Set
用法
Dim instance As Web
Dim value As String
value = instance.ServerRelativeUrl
instance.ServerRelativeUrl = value
public string ServerRelativeUrl { get; set; }
属性值
类型:System.String
A string that contains the server-relative URL.
异常
异常 | 条件 |
---|---|
ArgumentException | The site is a top-level site. Error code: - 2147024809. |
备注
It must not be 空引用(无 在 Visual Basic 中). It must not contain any of the reserved URLs. It must not contain the following illegal characters: [!#$&'+:<>?\\{|}~]|(//)|(\.\.)|(/_)|(/wpresources$)|(/wpresources/).