Compartilhar via


IVsUpgradeBuildPropertyStorage.ReplaceImport Method

Definition

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

public:
 int ReplaceImport(System::String ^ pszOldImportPath, System::String ^ pszOldCondition, System::String ^ pszNewImportPath, System::String ^ pszNewCondition);
public:
 int ReplaceImport(Platform::String ^ pszOldImportPath, Platform::String ^ pszOldCondition, Platform::String ^ pszNewImportPath, Platform::String ^ pszNewCondition);
int ReplaceImport(std::wstring const & pszOldImportPath, std::wstring const & pszOldCondition, std::wstring const & pszNewImportPath, std::wstring const & pszNewCondition);
public int ReplaceImport (string pszOldImportPath, string pszOldCondition, string pszNewImportPath, string pszNewCondition);
abstract member ReplaceImport : string * string * string * string -> int
Public Function ReplaceImport (pszOldImportPath As String, pszOldCondition As String, pszNewImportPath As String, pszNewCondition As String) As Integer

Parameters

pszOldImportPath
String

[in] The path to the file to be replaced.

pszOldCondition
String

[in] The old condition.

pszNewImportPath
String

[in] The path to the new file to be imported.

pszNewCondition
String

[in] The new condition to evaluate.

Returns

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

Remarks

COM Signature

From vsshell90.idl:

HRESULT ReplaceImport(  
    [in] LPCOLESTR pszOldImportPath,  
    [in] LPCOLESTR pszOldCondition,  
    [in] LPCOLESTR pszNewImportPath,  
    [in] LPCOLESTR pszNewCondition  
);  

Applies to