SPWebPartCollection.IndexOf - Méthode
Remarque : cette API est désormais obsolète.
Obsolète. Retourne l'index de collection du composant spécifié.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function IndexOf ( _
webPart As WebPart _
) As Integer
'Utilisation
Dim instance As SPWebPartCollection
Dim webPart As WebPart
Dim returnValue As Integer
returnValue = instance.IndexOf(webPart)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public int IndexOf(
WebPart webPart
)
Paramètres
webPart
Type : Microsoft.SharePoint.WebPartPages.WebPartUn objet Microsoft.SharePoint.WebPartPages.WebPart qui représente le composant WebPart pour lequel retourner l'index.
Valeur renvoyée
Type : System.Int32
Entier 32 bits qui identifie le composant WebPart dans la collection.