Свойство Site.ServerRelativeUrl
Gets the server-relative URL of the root Web site in the site collection.
Пространство имен: 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 ReadOnly Property ServerRelativeUrl As String
Get
'Применение
Dim instance As Site
Dim value As String
value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }
Значение свойства
Тип: System.String
A string that contains the URL.
Исключения
Исключение | Условие |
---|---|
UnauthorizedAccessException | The current user has insufficient permissions to perform the operation. |
Замечания
The ServerRelativeUrl property contains a forward slash ("/").