File.ServerRelativeUrl 属性
Gets the relative URL of the file based on the URL for the server.
命名空间: 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 File
Dim value As String
value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }
属性值
类型:System.String
A string that contains the URL.
异常
异常 | 条件 |
---|---|
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |
备注
The ServerRelativeUrl property returns a string in the following form, which excludes the name of the server or root folder: /Site_Name/Subsite_Name/Folder_Name/File_Name.
It must not be 空引用(无 在 Visual Basic 中). It must be a URL of server relative form.