Partager via


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

Valeur renvoyée

Type : System.Int32

Implémentations

IComparer<T>.Compare(T, T)

Voir aussi

Référence

NavigationComparer classe

NavigationComparer - Membres

Microsoft.SharePoint.Publishing.Navigation - Espace de noms

NavigationComparer