NavigationComparer.Compare - Méthode
Compare deux objets PortalSiteMapNode selon l'interface IComparer , en fonction de la configuration.
Espace de noms : Microsoft.SharePoint.Publishing.Navigation
Assembly : Microsoft.SharePoint.Publishing (dans Microsoft.SharePoint.Publishing.dll)
Syntaxe
'Déclaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Function Compare ( _
x As PortalSiteMapNode, _
y As PortalSiteMapNode _
) As Integer
'Utilisation
Dim instance As NavigationComparer
Dim x As PortalSiteMapNode
Dim y As PortalSiteMapNode
Dim returnValue As Integer
returnValue = instance.Compare(x, y)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public int Compare(
PortalSiteMapNode x,
PortalSiteMapNode y
)
Paramètres
x
Type : Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNodeLe premier PortalSiteMapNode à comparer.
y
Type : Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNodeLe deuxième PortalSiteMapNode à comparer.
Valeur renvoyée
Type : System.Int32