IVsUpgradeBuildPropertyStorage.AddNewImport Method
Add a new import to a project file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'宣言
Function AddNewImport ( _
pszImportPath As String, _
pszImportCondition As String _
) As Integer
'使用
Dim instance As IVsUpgradeBuildPropertyStorage
Dim pszImportPath As String
Dim pszImportCondition As String
Dim returnValue As Integer
returnValue = instance.AddNewImport(pszImportPath, _
pszImportCondition)
int AddNewImport(
string pszImportPath,
string pszImportCondition
)
int AddNewImport(
[InAttribute] String^ pszImportPath,
[InAttribute] String^ pszImportCondition
)
function AddNewImport(
pszImportPath : String,
pszImportCondition : String
) : int
Parameters
pszImportPath
Type: System.String[in] Path to the file to import.
pszImportCondition
Type: System.String[in] Condition to be evaluated.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell90.idl:
HRESULT AddNewImport(
[in] LPCOLESTR pszImportPath,
[in] LPCOLESTR pszImportCondition
);
Permissions
- 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.
See Also
Reference
IVsUpgradeBuildPropertyStorage Interface