PropertyBuilder.CanRead 属性

获取一个值,该值指示该属性 (Property) 是否可读。

**命名空间:**System.Reflection.Emit
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Overrides ReadOnly Property CanRead As Boolean
用法
Dim instance As PropertyBuilder
Dim value As Boolean

value = instance.CanRead
public override bool CanRead { get; }
public:
virtual property bool CanRead {
    bool get () override;
}
/** @property */
public boolean get_CanRead ()
public override function get CanRead () : boolean

属性值

如果此属性 (Property) 可读,则为 true;否则,为 false

备注

Boolean 属性 (Property),指示该属性 (Property) 是否可读。如果该属性 (Property) 没有 get 访问器,则它不可读。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

PropertyBuilder 类
PropertyBuilder 成员
System.Reflection.Emit 命名空间