Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IndexerNameAttribute Class

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

For a list of all members of this type, see IndexerNameAttribute Members.

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

[Visual Basic]
<AttributeUsage(AttributeTargets.Property)>
<Serializable>
NotInheritable Public Class IndexerNameAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Property)]
[Serializable]
public sealed class IndexerNameAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Property)]
[Serializable]
public __gc __sealed class IndexerNameAttribute : public
   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Property)
 Serializable
class IndexerNameAttribute extends Attribute

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.

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.

Requirements

Namespace: System.Runtime.CompilerServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

IndexerNameAttribute Members | System.Runtime.CompilerServices Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.