NotificationEvent.CommentText 方法
返回小于或等于maxCommentChars的注释字符串
命名空间: Microsoft.TeamFoundation.VersionControl.Common
程序集: Microsoft.TeamFoundation.VersionControl.Common.Integration(在 Microsoft.TeamFoundation.VersionControl.Common.Integration.dll 中)
语法
声明
Protected Function CommentText ( _
comment As String, _
maxCommentChars As Integer _
) As String
protected string CommentText(
string comment,
int maxCommentChars
)
参数
- comment
类型:System.String
注释文本
- maxCommentChars
类型:System.Int32
注释的最大字符数
返回值
类型:System.String
表示相应地调整注释的字符串
备注
该返回的字符串通常为电子邮件“Subject和内容标题的一部分。
该返回的字符串处理如下所示:1.会移除前导空格和尾随空格2。如果第一个换行符。最大之前发生,字符串(,但不包括换行符)返回。
3.如果调整()注释的长度大于最大小于,则返回4。第一个最大字符的子字符串用“…”作为后缀返回。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。