Programs.Item Method
Returns a Program object in a Programs collection.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Function Item ( _
index As Object _
) As Program
Program Item(
Object index
)
Program^ Item(
[InAttribute] Object^ index
)
abstract Item :
index:Object -> Program
function Item(
index : Object
) : Program
Parameters
index
Type: System.ObjectRequired. The index of the Program object to return.
Return Value
Type: EnvDTE.Program
A Program object.
Remarks
The Item method throws a T:System.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