Class AccessedThroughPropertyAttribute
Specifies the name of the property that accesses the attributed field.
Inherited Members
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public sealed class AccessedThroughPropertyAttribute : Attribute
Constructors
AccessedThroughPropertyAttribute(string)
Initializes a new instance of the AccessedThroughPropertyAttribute class with the name of the property used to access the attributed field.
Declaration
public AccessedThroughPropertyAttribute(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | The name of the property used to access the attributed field. |
Properties
PropertyName
Gets the name of the property used to access the attributed field.
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
string | The name of the property used to access the attributed field. |