IVsUpgradeBuildPropertyStorage::ReplaceImport Method (String^, String^, String^, String^)
Visual Studio 2015
Replaces an import in the project file with a new import.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int ReplaceImport(
String^ pszOldImportPath,
String^ pszOldCondition,
String^ pszNewImportPath,
String^ pszNewCondition
)
Parameters
- pszOldImportPath
-
Type:
System::String^
[in] The path to the file to be replaced.
- pszOldCondition
-
Type:
System::String^
[in] The old condition.
- pszNewImportPath
-
Type:
System::String^
[in] The path to the new file to be imported.
- pszNewCondition
-
Type:
System::String^
[in] The new condition to evaluate.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell90.idl:
HRESULT ReplaceImport(
[in] LPCOLESTR pszOldImportPath,
[in] LPCOLESTR pszOldCondition,
[in] LPCOLESTR pszNewImportPath,
[in] LPCOLESTR pszNewCondition
);
Show: