Compartilhar via


IVsUpgradeBuildPropertyStorage.RemoveImport(String, String) Method

Definition

Removes an import from a project file.

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

Parameters

pszImportPath
String

[in] Path to the file to remove.

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 RemoveImport(  
    [in] LPCOLESTR pszImportPath,   
    [in] LPCOLESTR pszImportCondition  
);  

Applies to