CodeTypeReferenceCollection.Add Método

Definição

Adiciona o CodeTypeReference especificado à coleção.Adds the specified CodeTypeReference to the collection.

Sobrecargas

Add(CodeTypeReference)

Adiciona o CodeTypeReference especificado à coleção.Adds the specified CodeTypeReference to the collection.

Add(String)

Adiciona um CodeTypeReference à coleção usando o nome de tipo de dados especificado.Adds a CodeTypeReference to the collection using the specified data type name.

Add(Type)

Adiciona um CodeTypeReference à coleção usando o tipo de dados especificado.Adds a CodeTypeReference to the collection using the specified data type.

Add(CodeTypeReference)

Adiciona o CodeTypeReference especificado à coleção.Adds the specified CodeTypeReference to the collection.

public:
 int Add(System::CodeDom::CodeTypeReference ^ value);
public int Add (System.CodeDom.CodeTypeReference value);
member this.Add : System.CodeDom.CodeTypeReference -> int
Public Function Add (value As CodeTypeReference) As Integer

Parâmetros

value
CodeTypeReference

O CodeTypeReference a ser adicionado.The CodeTypeReference to add.

Retornos

Int32

O índice no qual o novo elemento foi inserido.The index at which the new element was inserted.

Exemplos

// Adds a CodeTypeReference to the collection.
collection->Add( gcnew CodeTypeReference( bool::typeid ) );
// Adds a CodeTypeReference to the collection.
collection.Add( new CodeTypeReference(typeof(bool)) );
' Adds a CodeTypeReference to the collection.
collection.Add(New CodeTypeReference(GetType(Boolean)))

Confira também

Aplica-se a

Add(String)

Adiciona um CodeTypeReference à coleção usando o nome de tipo de dados especificado.Adds a CodeTypeReference to the collection using the specified data type name.

public:
 void Add(System::String ^ value);
public void Add (string value);
member this.Add : string -> unit
Public Sub Add (value As String)

Parâmetros

value
String

O nome de um tipo de dados para o qual adicionar um CodeTypeReference à coleção.The name of a data type for which to add a CodeTypeReference to the collection.

Aplica-se a

Add(Type)

Adiciona um CodeTypeReference à coleção usando o tipo de dados especificado.Adds a CodeTypeReference to the collection using the specified data type.

public:
 void Add(Type ^ value);
public void Add (Type value);
member this.Add : Type -> unit
Public Sub Add (value As Type)

Parâmetros

value
Type

O tipo de dados para o qual adicionar um CodeTypeReference à coleção.The data type for which to add a CodeTypeReference to the collection.

Aplica-se a