CodeMemberProperty.SetStatements 属性

定义

获取该属性的 set 语句的集合。Gets the collection of set statements for the property.

public:
 property System::CodeDom::CodeStatementCollection ^ SetStatements { System::CodeDom::CodeStatementCollection ^ get(); };
public System.CodeDom.CodeStatementCollection SetStatements { get; }
member this.SetStatements : System.CodeDom.CodeStatementCollection
Public ReadOnly Property SetStatements As CodeStatementCollection

属性值

CodeStatementCollection

CodeStatementCollection,包含该成员属性的 set 语句。A CodeStatementCollection that contains the set statements for the member property.

注解

此集合中的一个语句通常为属性设置一个值。One of the statements in this collection typically sets a value for the property. 通常,set 方法访问器中的语句执行检查以确定是否为属性设置或转换指定的值。Often, the statements within a set method accessor perform checking to determine whether to set or translate the specified value for the property. CodePropertySetValueReferenceExpression表示对传递给 set 方法的对象的引用。A CodePropertySetValueReferenceExpression represents a reference to the object passed to the set method.

适用于

另请参阅