CodeCommentStatementCollection.Add(CodeCommentStatement) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute l’objet spécifié CodeCommentStatement à la collection.
public:
int Add(System::CodeDom::CodeCommentStatement ^ value);
public int Add(System.CodeDom.CodeCommentStatement value);
member this.Add : System.CodeDom.CodeCommentStatement -> int
Public Function Add (value As CodeCommentStatement) As Integer
Paramètres
- value
- CodeCommentStatement
Objet CodeCommentStatement à ajouter.
Retours
Index auquel le nouvel élément a été inséré.
Exemples
L’exemple suivant montre comment ajouter un CodeCommentStatement objet à une CodeCommentStatementCollection instance.
// Adds a CodeCommentStatement to the collection.
collection.Add( new CodeCommentStatement("Test comment") );
' Adds a CodeCommentStatement to the collection.
collection.Add(New CodeCommentStatement("Test comment"))