Export (0) Print
Expand All

PropertyBuilder.CanWrite Property

Gets a value indicating whether the property has a set accessor.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override bool CanWrite { get; }

Property Value

Type: System.Boolean
true if this property has a set accessor, and therefore can be written to; otherwise, false.

A property might lack a set accessor because it is read-only, or because the set accessor has not been assigned yet. To assign a set accessor to a property, use the SetSetMethod method.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft