Partager via


SPFieldIndex.GetField - Méthode

Récupère l'identificateur (ID) du champ à l'index spécifié dans le SPFieldIndex.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Function GetField ( _
    index As Integer _
) As Guid
'Utilisation
Dim instance As SPFieldIndex
Dim index As Integer
Dim returnValue As Guid

returnValue = instance.GetField(index)
public Guid GetField(
    int index
)

Paramètres

  • index
    Type : System.Int32

    Une valeur d'index de base zéro qui identifie la position du champ se trouve.

Valeur renvoyée

Type : System.Guid
L'ID du champ.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index est négatif ou supérieur au nombre de champs.

Voir aussi

Référence

SPFieldIndex classe

SPFieldIndex - Membres

Microsoft.SharePoint - Espace de noms