VCCodeMacro.Comment 属性

获取或设置与代码元素关联的注释。

命名空间:  Microsoft.VisualStudio.VCCodeModel
程序集:  Microsoft.VisualStudio.VCCodeModel(在 Microsoft.VisualStudio.VCCodeModel.dll 中)

语法

声明
Property Comment As String
string Comment { get; set; }
property String^ Comment {
    String^ get ();
    void set (String^ value);
}
abstract Comment : string with get, set
function get Comment () : String
function set Comment (value : String)

属性值

类型:System.String
与代码元素关联的注释。

备注

Comment 设置或返回标头注释。 返回时,文本不包含任何注释语法。 从包含代码元素的源文档派生出注释文本。 标头集合的注释行的数量基于注释编写的语言而有所变化。

通过使用 (可沿与分隔的语法,将设置为, Comment 尝试维护所有现有注释样式,通过保持任何缩进在 (可沿的语法之前,通过维护注释是否相关代码元素或由一个空白行,等等。

.NET Framework 安全性

请参见

参考

VCCodeMacro 接口

Microsoft.VisualStudio.VCCodeModel 命名空间

其他资源

如何:编译和运行自动化对象模型代码示例