Condividi tramite


SolutionContexts.Item Method

Returns a SolutionContext object in a SolutionContexts collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function Item ( _
    index As Object _
) As SolutionContext
SolutionContext Item(
    Object index
)
SolutionContext^ Item(
    [InAttribute] Object^ index
)
abstract Item : 
        index:Object -> SolutionContext
function Item(
    index : Object
) : SolutionContext

Parameters

Return Value

Type: EnvDTE.SolutionContext
A SolutionContext object.

Remarks

The value passed to Index is either an integer that is an index to a SolutionContext object in its SolutionContexts collection or a string that is the name of a SolutionContext object.

The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.

.NET Framework Security

See Also

Reference

SolutionContexts Interface

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples