Share via


IndexerNameAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Indicates the name by which an indexer is known in programming languages that do not support indexers directly.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .Attribute
    System.Runtime.CompilerServices..::..IndexerNameAttribute

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<SerializableAttribute> _
<AttributeUsageAttribute(AttributeTargets.Property, Inherited := True)> _
Public NotInheritable Class IndexerNameAttribute _
    Inherits Attribute
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Property, Inherited = true)]
public sealed class IndexerNameAttribute : Attribute
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets::Property, Inherited = true)]
public ref class IndexerNameAttribute sealed : public Attribute
[<Sealed>]
[<SerializableAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Property, Inherited = true)>]
type IndexerNameAttribute =  
    class
        inherit Attribute
    end
public final class IndexerNameAttribute extends Attribute

The IndexerNameAttribute type exposes the following members.

Constructors

  Name Description
Public method IndexerNameAttribute Initializes a new instance of the IndexerNameAttribute class.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You can apply this attribute to properties.

This attribute is directly processed by the compiler, and cannot be accessed after compilation through Reflection.

The classes in System.Runtime.CompilerServices are for compiler writers use only.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Runtime.CompilerServices Namespace