SPFieldCollection.GetFieldByInternalName - Méthode

Retourne le champ avec le nom interne spécifié de la collection.

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

Syntaxe

'Déclaration
Public Function GetFieldByInternalName ( _
    strName As String _
) As SPField
'Utilisation
Dim instance As SPFieldCollection
Dim strName As String
Dim returnValue As SPField

returnValue = instance.GetFieldByInternalName(strName)
public SPField GetFieldByInternalName(
    string strName
)

Paramètres

  • strName
    Type : System.String

    Chaîne qui spécifie le nom interne du champ.

Valeur renvoyée

Type : Microsoft.SharePoint.SPField
Objet SPField qui représente le champ.

Exceptions

Exception Condition
ArgumentException

Aucun champ portant ce nom n'existe dans la collection.

Voir aussi

Référence

SPFieldCollection classe

SPFieldCollection - Membres

Microsoft.SharePoint - Espace de noms

InternalName