VirtualTypeBuilder.AttributeCollection.Item Property

Gets or sets the attribute 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 Attribute
    Get
    Set
‘사용 방법
Dim instance As VirtualTypeBuilder..::..AttributeCollection
Dim index As Integer
Dim value As Attribute

value = instance(index)

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

Parameters

  • index
    Type: System.Int32
    The 0-based index of the attribute.

Property Value

Type: System.Attribute
An Attribute 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.AttributeCollection Class

VirtualTypeBuilder.AttributeCollection Members

Microsoft.VisualStudio.Shell.Design Namespace