Partager via


IVsUpgradeBuildPropertyStorage.AddNewImport(String, String) Method

Definition

Add a new import to a project file.

public:
 int AddNewImport(System::String ^ pszImportPath, System::String ^ pszImportCondition);
public:
 int AddNewImport(Platform::String ^ pszImportPath, Platform::String ^ pszImportCondition);
int AddNewImport(std::wstring const & pszImportPath, std::wstring const & pszImportCondition);
public int AddNewImport (string pszImportPath, string pszImportCondition);
abstract member AddNewImport : string * string -> int
Public Function AddNewImport (pszImportPath As String, pszImportCondition As String) As Integer

Parameters

pszImportPath
String

[in] Path to the file to import.

pszImportCondition
String

[in] Condition to be evaluated.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell90.idl:

HRESULT AddNewImport(  
    [in] LPCOLESTR pszImportPath,   
    [in] LPCOLESTR pszImportCondition  
);  

Applies to