IVsProject4.AddItem Method
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function AddItem ( _
itemidLoc As UInteger, _
dwAddItemOperation As VSADDITEMOPERATION, _
pszItemName As String, _
cFilesToOpen As UInteger, _
rgpszFilesToOpen As String(), _
hwndDlgOwner As IntPtr, _
<OutAttribute> pResult As VSADDRESULT() _
) As Integer
int AddItem(
uint itemidLoc,
VSADDITEMOPERATION dwAddItemOperation,
string pszItemName,
uint cFilesToOpen,
string[] rgpszFilesToOpen,
IntPtr hwndDlgOwner,
VSADDRESULT[] pResult
)
int AddItem(
[InAttribute] unsigned int itemidLoc,
[InAttribute] VSADDITEMOPERATION dwAddItemOperation,
[InAttribute] String^ pszItemName,
[InAttribute] unsigned int cFilesToOpen,
[InAttribute] array<String^>^ rgpszFilesToOpen,
[InAttribute] IntPtr hwndDlgOwner,
[OutAttribute] array<VSADDRESULT>^ pResult
)
abstract AddItem :
itemidLoc:uint32 *
dwAddItemOperation:VSADDITEMOPERATION *
pszItemName:string *
cFilesToOpen:uint32 *
rgpszFilesToOpen:string[] *
hwndDlgOwner:IntPtr *
pResult:VSADDRESULT[] byref -> int
function AddItem(
itemidLoc : uint,
dwAddItemOperation : VSADDITEMOPERATION,
pszItemName : String,
cFilesToOpen : uint,
rgpszFilesToOpen : String[],
hwndDlgOwner : IntPtr,
pResult : VSADDRESULT[]
) : int
Parameters
- itemidLoc
Type: UInt32
- dwAddItemOperation
Type: Microsoft.VisualStudio.Shell.Interop.VSADDITEMOPERATION
- pszItemName
Type: String
- cFilesToOpen
Type: UInt32
- rgpszFilesToOpen
Type: array<String[]
- hwndDlgOwner
Type: IntPtr
- pResult
Type: array<Microsoft.VisualStudio.Shell.Interop.VSADDRESULT[]
Return Value
Type: Int32
.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.