VirtualTypeBuilder.MethodInfoCollection.Item Property

Gets or sets the method at the specified index.

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

Syntax

‘선언
Public Default Property Item ( _
    index As Integer _
) As MethodInfo
    Get
    Set
‘사용 방법
Dim instance As VirtualTypeBuilder..::..MethodInfoCollection
Dim index As Integer
Dim value As MethodInfo

value = instance(index)

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

Parameters

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

Property Value

Type: System.Reflection.MethodInfo
A MethodInfo at the specified index.

Exceptions

Exception Condition
ArgumentException

index is less than 0.

-or-

index is equal to or greater than the number of items in the collection.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder.MethodInfoCollection Class

VirtualTypeBuilder.MethodInfoCollection Members

Microsoft.VisualStudio.Shell.Design Namespace