Share via


ContextAttributes.Item-Methode

Gibt ein ContextAttribute-Objekt zurück, das ein Element der ContextAttributes-Auflistung darstellt.

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

Syntax

'Declaration
Function Item ( _
    index As Object _
) As ContextAttribute
ContextAttribute Item(
    Object index
)
ContextAttribute^ Item(
    Object^ index
)
abstract Item : 
        index:Object -> ContextAttribute 
function Item(
    index : Object
) : ContextAttribute

Parameter

Rückgabewert

Typ: EnvDTE.ContextAttribute
Ein ContextAttribute-Objekt.

Hinweise

Der an index übergebene Wert ist eine ganze Zahl, die entweder einen Index für ein ContextAttribute-Objekt in dessen ContextAttributes-Auflistung darstellt, oder ein Zeichenfolgenwert, der dem Namen von ContextAttribute in der Auflistung entspricht.

Die Item-Methode löst eine ArgumentException-Ausnahme aus, wenn die Auflistung das dem Indexwert entsprechende Objekt nicht finden kann.

.NET Framework-Sicherheit

Siehe auch

Referenz

ContextAttributes Schnittstelle

EnvDTE-Namespace

Weitere Ressourcen

Gewusst wie: Kompilieren und Ausführen der Codebeispiele für das Automatisierungsobjektmodell