CommentInfo.UseLineComments 属性

指定行注释是否支持。

命名空间:  Microsoft.VisualStudio.Package
程序集:   Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
  Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
  Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
  Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)

语法

声明
Public Property UseLineComments As Boolean
public bool UseLineComments { get; set; }

属性值

类型:System.Boolean
,如果行注释是支持,返回 true ;否则,返回 false。

备注

如果该语言支持行注释,则还必须提供在 LineStart 属性的行注释字符。

.NET Framework 安全性

请参见

参考

CommentInfo 结构

Microsoft.VisualStudio.Package 命名空间