共用方式為


SPUtility.SiteRelativeUrlPrefix Field

The value of this string is ~sitecollection/.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.StaticReadonlyField)> _
Public Shared ReadOnly SiteRelativeUrlPrefix As String
'Usage
Dim value As String

value = SPUtility.SiteRelativeUrlPrefix
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.StaticReadonlyField)]
public static readonly string SiteRelativeUrlPrefix

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace