CodeCommentStatementCollection.Add(CodeCommentStatement) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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 objetivo a acrescentar.
Devoluções
O índice onde o novo elemento foi inserido.
Exemplos
O exemplo seguinte 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"))