Udostępnij za pośrednictwem


PropertyBuilder.CanWrite Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Overrides ReadOnly Property CanWrite As Boolean
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.

Remarks

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.

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.