Свойство 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 пустая ссылка (Nothing в Visual Basic). It must not contain any of the reserved URLs. It must not contain the following illegal characters: [!#$&'+:<>?\\{|}~]|(//)|(\.\.)|(/_)|(/wpresources$)|(/wpresources/).