PublishingPage.Route - Méthode (PublishingPage, String)
Achemine un objet PublishingPage en utilisant les règles d'organisateur de contenu.
Espace de noms : Microsoft.SharePoint.Publishing
Assembly : Microsoft.SharePoint.Publishing (dans Microsoft.SharePoint.Publishing.dll)
Syntaxe
'Déclaration
Public Shared Function Route ( _
originalPage As PublishingPage, _
checkInComments As String _
) As PublishingPage
'Utilisation
Dim originalPage As PublishingPage
Dim checkInComments As String
Dim returnValue As PublishingPage
returnValue = PublishingPage.Route(originalPage, _
checkInComments)
public static PublishingPage Route(
PublishingPage originalPage,
string checkInComments
)
Paramètres
originalPage
Type : Microsoft.SharePoint.Publishing.PublishingPageL'objet PublishingPage être acheminés.
checkInComments
Type : System.StringChaîne qui spécifie un commentaire d'archivage.
Valeur renvoyée
Type : Microsoft.SharePoint.Publishing.PublishingPage
L'objet PublishingPage après le routage.
Remarques
Si la propriété RequiresRouting de l'objet PublishingPage est true et l'objet PublishingPage correspond à l'une des règles d'organisateur de contenu, l'objet PublishingPage est acheminé vers le nouvel emplacement en fonction de la règle. Dans le cas contraire, la PublishingPage reste dans l'emplacement actuel.
Quel que soit le si l' PublishingPage est routé, la propriété RequiresRouting est définie sur false et la PublishingPage est archivé dans une fois que la méthode est appelée.
Exemples
PublishingWeb web;
PublishingPage pageBeforeRouting;
... get PublishingWeb and PublishingPage instances
string comments = "Check in Comment";
PublishingPage pageAfterRouting = PublishingPage.Route(pageBeforeRouting, comments);