IVsUpgradeBuildPropertyStorage::AddNewImport Method (String^, String^)

 

Add a new import to a project file.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

int AddNewImport(
	String^ pszImportPath,
	String^ pszImportCondition
)

Parameters

pszImportPath
Type: System::String^

[in] Path to the file to import.

pszImportCondition
Type: System::String^

[in] Condition to be evaluated.

Return Value

Type: System::Int32

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

From vsshell90.idl:

HRESULT AddNewImport(
    [in] LPCOLESTR pszImportPath, 
    [in] LPCOLESTR pszImportCondition
);
Return to top
Show: