ImportCollection.AddNewImport(String, String) Método
Definição
Permite que os hosts adicionem programaticamente uma nova marca de <Importação> a um arquivo de projeto que está sendo manipulado pelo host.Allows hosts to programmatically add a new <Import> tag to a project file being manipulated by the host.
public:
void AddNewImport(System::String ^ projectFile, System::String ^ condition);
public void AddNewImport (string projectFile, string condition);
member this.AddNewImport : string * string -> unit
Public Sub AddNewImport (projectFile As String, condition As String)
Parâmetros
- projectFile
- String
Uma cadeia de caracteres necessária que representa o nome de arquivo de projeto para a instrução <Import> a ser adicionada.A required string representing the name of the project file for the <Import> statement to be added. Por exemplo, "myproject.csproj".For example, "myproject.csproj."
- condition
- String
Uma cadeia de caracteres opcional que indica se o elemento é processado.An optional string indicating whether the element is processed. Se condition
for true
, a marca de <Importação> especificada será adicionada. Se for false
, não será.If condition
is true
, then the specified <Import> tag is added, if false
, it is not.