CodeCommentStatementCollection.Add(CodeCommentStatement) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Adiciona o objeto especificado CodeCommentStatement à coleção.
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
Parâmetros
- value
- CodeCommentStatement
O CodeCommentStatement objeto a ser adicionado.
Retornos
O índice no qual o novo elemento foi inserido.
Exemplos
O exemplo a seguir demonstra como adicionar um CodeCommentStatement objeto a uma CodeCommentStatementCollection instância.
// Adds a CodeCommentStatement to the collection.
collection.Add( new CodeCommentStatement("Test comment") );
' Adds a CodeCommentStatement to the collection.
collection.Add(New CodeCommentStatement("Test comment"))