CodeTypeMember.LinePragma 属性

定义

获取或设置类型成员语句所在的行。Gets or sets the line on which the type member statement occurs.

public:
 property System::CodeDom::CodeLinePragma ^ LinePragma { System::CodeDom::CodeLinePragma ^ get(); void set(System::CodeDom::CodeLinePragma ^ value); };
public System.CodeDom.CodeLinePragma LinePragma { get; set; }
member this.LinePragma : System.CodeDom.CodeLinePragma with get, set
Public Property LinePragma As CodeLinePragma

属性值

CodeLinePragma

一个 CodeLinePragma 对象,它指示类型成员声明的位置。A CodeLinePragma object that indicates the location of the type member declaration.

注解

此属性指示类型成员声明的位置。This property indicates the location of the type member declaration. 此属性可用于错误报告和调试。This property can be used for error reporting and debugging. 当基于模板文件生成代码时,类型成员声明的位置会很有用。The location of the type member declaration can be useful when code is generated based on a template file.

注意

null默认情况下,此值为,并且应在引用之前检查内容。This value is null by default and should be checked for content before being referenced.

适用于

另请参阅