_Solution.Item Method
Returns a Project object in a Projects collection.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Function Item ( _
index As Object _
) As Project
Project Item(
Object index
)
Project^ Item(
[InAttribute] Object^ index
)
abstract Item :
index:Object -> Project
function Item(
index : Object
) : Project
Parameters
index
Type: System.ObjectRequired. The index of the Project object to return.
Return Value
Type: EnvDTE.Project
A Project object.
Remarks
The value passed to Index is either an integer that is an index to a Project object in its Projects collection or the name of a Project object in the collection.
The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.
.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.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples