Compartir a través de


VirtualTypeBuilder.EventInfoCollection.Item Property

Gets or sets the event at the specified index.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaración
Public Default Property Item ( _
    index As Integer _
) As EventInfo
    Get
    Set
'Uso
Dim instance As VirtualTypeBuilder..::..EventInfoCollection
Dim index As Integer
Dim value As EventInfo

value = instance(index)

instance(index) = value
public EventInfo this[
    int index
] { get; set; }
public:
property EventInfo^ default[int index] {
    EventInfo^ get (int index);
    void set (int index, EventInfo^ value);
}
member Item : EventInfo with get, set
JScript does not support indexed properties.

Parameters

  • index
    Type: System.Int32
    The 0-based index of the element to get or set.

Property Value

Type: System.Reflection.EventInfo
An EventInfo at the specified index.

Exceptions

Exception Condition
ArgumentException

index is less than 0.

-or-

index is equal to or greater than Count.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder.EventInfoCollection Class

VirtualTypeBuilder.EventInfoCollection Members

Microsoft.VisualStudio.Shell.Design Namespace