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

 

Replaces an import in the project file with a new import.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: