PublishingPage.AddFriendlyUrl 方法
添加此PublishingPage对象的用户友好 URL。
命名空间: Microsoft.SharePoint.Client.Publishing
程序集: Microsoft.SharePoint.Client.Publishing.Silverlight(位于 Microsoft.SharePoint.Client.Publishing.Silverlight.dll 中); Microsoft.SharePoint.Client.Publishing.Phone(位于 Microsoft.SharePoint.Client.Publishing.Phone.dll 中) Microsoft.SharePoint.Client.Publishing(位于 Microsoft.SharePoint.Client.Publishing.dll 中)
语法
声明
Public Function AddFriendlyUrl ( _
friendlyUrlSegment As String, _
editableParent As NavigationTermSetItem, _
doAddToNavigation As Boolean _
) As ClientResult(Of String)
用法
Dim instance As PublishingPage
Dim friendlyUrlSegment As String
Dim editableParent As NavigationTermSetItem
Dim doAddToNavigation As Boolean
Dim returnValue As ClientResult(Of String)
returnValue = instance.AddFriendlyUrl(friendlyUrlSegment, _
editableParent, doAddToNavigation)
public ClientResult<string> AddFriendlyUrl(
string friendlyUrlSegment,
NavigationTermSetItem editableParent,
bool doAddToNavigation
)
参数
friendlyUrlSegment
类型:System.String若要将用作 URL 段用户友好的文本。
editableParent
类型:Microsoft.SharePoint.Client.Publishing.Navigation.NavigationTermSetItem此新的友好 URL 应该创建下面的父NavigationTermSetItem对象。
doAddToNavigation
类型:System.Boolean指明是否将友好 URL 添加到托管导航。
返回值
类型:Microsoft.SharePoint.Client.ClientResult<String>
新服务器相对友好 URL 此PublishingPage对象。
备注
必须为可编辑的项目检索editableParent参数。