Project.AddNewItem Método
Definição
Adiciona o elemento especificado ao projeto.Adds the specified element to the project.
Sobrecargas
| AddNewItem(String, String) |
Adiciona o elemento Item especificado ao projeto.Adds the specified Item element to the project. |
| AddNewItem(String, String, Boolean) |
Adiciona o elemento Item especificado ao projeto.Adds the specified Item element to the project. |
AddNewItem(String, String)
public:
Microsoft::Build::BuildEngine::BuildItem ^ AddNewItem(System::String ^ itemName, System::String ^ itemInclude);
public Microsoft.Build.BuildEngine.BuildItem AddNewItem (string itemName, string itemInclude);
member this.AddNewItem : string * string -> Microsoft.Build.BuildEngine.BuildItem
Public Function AddNewItem (itemName As String, itemInclude As String) As BuildItem
Parâmetros
- itemName
- String
O nome da coleção de itens à qual adicionar o item.The name of the item collection to add the item to. Corresponde ao nome definido pelo usuário do elemento Item.Corresponds to the user-defined name of the Item element.
- itemInclude
- String
O valor do atributo Include do item.The value of the Include attribute of the item.
Retornos
Um BuildItem que contém o item criado.A BuildItem containing the created item.
Comentários
Este método tentar adicionar o item ao projeto próximo aos outros itens na coleção de itens.This method attempts to add the item to the project near the other items in the item collection.
Aplica-se a
AddNewItem(String, String, Boolean)
public:
Microsoft::Build::BuildEngine::BuildItem ^ AddNewItem(System::String ^ itemName, System::String ^ itemInclude, bool treatItemIncludeAsLiteral);
public Microsoft.Build.BuildEngine.BuildItem AddNewItem (string itemName, string itemInclude, bool treatItemIncludeAsLiteral);
member this.AddNewItem : string * string * bool -> Microsoft.Build.BuildEngine.BuildItem
Public Function AddNewItem (itemName As String, itemInclude As String, treatItemIncludeAsLiteral As Boolean) As BuildItem
Parâmetros
- itemName
- String
O nome da coleção de itens à qual adicionar o item.The name of the item collection to add the item to. Corresponde ao nome definido pelo usuário do elemento Item.Corresponds to the user-defined name of the Item element.
- itemInclude
- String
O valor do atributo Include do item.The value of the Include attribute of the item.
- treatItemIncludeAsLiteral
- Boolean
true para tratar o parâmetro itemInclude como um valor literal; do contrário, false.true to treat the itemInclude parameter as a literal value; otherwise, false.
Retornos
Um BuildItem que contém o item criado.A BuildItem containing the created item.
Comentários
Este método tentar adicionar o item ao projeto próximo aos outros itens na coleção de itens.This method attempts to add the item to the project near the other items in the item collection.