Share via


AccessedThroughPropertyAttribute Class

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

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Field)> _
Public NotInheritable Class AccessedThroughPropertyAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Field)]
public sealed class AccessedThroughPropertyAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Field)]
public ref class AccessedThroughPropertyAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Field)>]
type AccessedThroughPropertyAttribute =  
    class
        inherit Attribute
    end
public final class AccessedThroughPropertyAttribute extends Attribute

The AccessedThroughPropertyAttribute type exposes the following members.

Constructors

  Name Description
Public method AccessedThroughPropertyAttribute Initializes a new instance of the AccessedThroughPropertyAttribute class with the name of the property used to access the attributed field.

Top

Properties

  Name Description
Public property PropertyName Gets the name of the property used to access the attributed field.

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 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.

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