次の方法で共有


AccessedThroughPropertyAttribute クラス

属性付きフィールドにアクセスするプロパティの名前を指定します。

この型のすべてのメンバの一覧については、AccessedThroughPropertyAttribute メンバ を参照してください。

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

<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

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

この属性は、フィールドに適用できます。

この属性はブラウザまたはツールによって使用され、共通言語ランタイムには無視されます。

System.Runtime.CompilerServices のクラスはコンパイラ ライタ専用です。

必要条件

名前空間: System.Runtime.CompilerServices

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

アセンブリ: Mscorlib (Mscorlib.dll 内)

参照

AccessedThroughPropertyAttribute メンバ | System.Runtime.CompilerServices 名前空間