Sdílet prostřednictvím


EditableAspMenuState.SPSitePrefix property

If you want the "Try Link" command to work properly with relative links such as "~sitecollection/Pages/MyPage.aspx", this prefix defines the text that should be substituted for "~sitecollection/. Example: "https://contoso.com/sites/site1/"

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property SPSitePrefix As String
    Get
    Set
'Usage
Dim instance As EditableAspMenuState
Dim value As String

value = instance.SPSitePrefix

instance.SPSitePrefix = value
public string SPSitePrefix { get; set; }

Property value

Type: System.String

Remarks

(to client)

See also

Reference

EditableAspMenuState class

EditableAspMenuState members

Microsoft.SharePoint.Navigation namespace