SPFieldAllDayEvent - Constructeur (SPFieldCollection, String, String)
Initialise une nouvelle instance de la classe SPFieldAllDayEvent et l'ajoute à la collection de champ spécifié avec le nom de type spécifié et le nom de l'affichage.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Sub New ( _
fields As SPFieldCollection, _
typeName As String, _
displayName As String _
)
'Utilisation
Dim fields As SPFieldCollection
Dim typeName As String
Dim displayName As String
Dim instance As New SPFieldAllDayEvent(fields, _
typeName, displayName)
public SPFieldAllDayEvent(
SPFieldCollection fields,
string typeName,
string displayName
)
Paramètres
fields
Type : Microsoft.SharePoint.SPFieldCollectionLa collection de champs dans lequel le champ est ajouté.
typeName
Type : System.StringLe type de champ, par exemple « Text » ou « Url ».
displayName
Type : System.StringLe nom complet du nouveau champ.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | fields, typeNameou displayName est null . - ou - fields, typeNameou displayName est vide. |