AccessedThroughPropertyAttribute Class

AccessedThroughPropertyAttribute Class

Specifies the name of the property that accesses the attributed field.

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

System.Object
   System.Attribute
      System.Runtime.CompilerServices.AccessedThroughPropertyAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Field)>
NotInheritable Public Class AccessedThroughPropertyAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Field)]
public sealed class AccessedThroughPropertyAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Field)]
public __gc __sealed class AccessedThroughPropertyAttribute :
   public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Field)
class AccessedThroughPropertyAttribute 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 fields.

This attribute is for use by browsers or tools, and is ignored by the common language runtime.

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

AccessedThroughPropertyAttribute Members | System.Runtime.CompilerServices Namespace

Show:
© 2016 Microsoft