Edit

Share via


CodeMemberProperty.SetStatements Property

Definition

Gets the collection of set statements for the property.

public System.CodeDom.CodeStatementCollection SetStatements { get; }

Property Value

A CodeStatementCollection that contains the set statements for the member property.

Remarks

One of the statements in this collection typically sets a value for the property. Often, the statements within a set method accessor perform checking to determine whether to set or translate the specified value for the property. A CodePropertySetValueReferenceExpression represents a reference to the object passed to the set method.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also