CodeMemberProperty.GetStatements 属性

定义

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

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

属性值

CodeStatementCollection

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

注解

其中的一个语句 CodeStatementCollection 应返回成员属性的值。One of the statements in this CodeStatementCollection should return the value for the member property. 使用 CodeMethodReturnStatement 可返回属性的数据类型的值。Use a CodeMethodReturnStatement to return a value of the data type of the property.

适用于

另请参阅