SPFieldCollection.TryGetFieldByStaticName - Méthode

Retourne le champ portant le nom statique spécifié de la collection.

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

Syntaxe

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

returnValue = instance.TryGetFieldByStaticName(staticName)
public SPField TryGetFieldByStaticName(
    string staticName
)

Paramètres

  • staticName
    Type : System.String

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

Valeur renvoyée

Type : Microsoft.SharePoint.SPField
Objet SPField qui représente le champ. Si un champ portant le nom spécifié n'existe pas, la valeur de retour est une référence Null (Rien dans Visual Basic). Si plus d'un champ est trouvé, la première est renvoyée.

Voir aussi

Référence

SPFieldCollection classe

SPFieldCollection - Membres

Microsoft.SharePoint - Espace de noms

StaticName