Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function ReplaceImport ( _
pszOldImportPath As String, _
pszOldCondition As String, _
pszNewImportPath As String, _
pszNewCondition As String _
) As Integer
int ReplaceImport(
string pszOldImportPath,
string pszOldCondition,
string pszNewImportPath,
string pszNewCondition
)
int ReplaceImport(
[InAttribute] String^ pszOldImportPath,
[InAttribute] String^ pszOldCondition,
[InAttribute] String^ pszNewImportPath,
[InAttribute] String^ pszNewCondition
)
abstract ReplaceImport :
pszOldImportPath:string *
pszOldCondition:string *
pszNewImportPath:string *
pszNewCondition:string -> int
function ReplaceImport(
pszOldImportPath : String,
pszOldCondition : String,
pszNewImportPath : String,
pszNewCondition : String
) : int
Parameters
pszOldImportPath
Type: String[in] The path to the file to be replaced.
pszOldCondition
Type: String[in] The old condition.
pszNewImportPath
Type: String[in] The path to the new file to be imported.
pszNewCondition
Type: String[in] The new condition to evaluate.
Return Value
Type: Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.