PropertyBuilder.CanRead Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets a value indicating whether the property has a get accessor.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property CanRead As Boolean
public override bool CanRead { get; }
Property Value
Type: System.Boolean
true if this property has a get accessor, and therefore can be read; otherwise, false.
Remarks
A property might lack a get accessor because it is write-only, or because the get accessor has not been assigned yet. To assign a get accessor to a property, use the SetGetMethod method.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.