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
)

パラメーター

  • maxCommentChars
    型 : System.Int32
    コメント文字の最大数

戻り値

型 : System.String
それに応じてトリム コメントを表す文字列

解説

返される文字列は、通常、電子メール 「およびコンテンツのタイトルの Subject 一部です。

返される文字列は次のように処理されます: 1。先頭および末尾の空白は削除されます。2.最初の改行が最大の前に来る場合、文字列 (ただし、改行を除く) まで戻ります。

3.(トリミングされた) コメントの長さが最大値よりも小さい場合、4. を返します。最初の最大文字の部分文字列が "…」 サフィックスとして付けられた戻されます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

NotificationEvent クラス

Microsoft.TeamFoundation.VersionControl.Common 名前空間