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
메모를 나타내는 문자열로 적절 하 게 잘라냅니다.

설명

반환 되는 문자열은 일반적으로 콘텐츠 제목 및 전자 메일 '제목' 부분.

반환 된 문자열은 다음과 같이 처리 됩니다: 1. 선행 및 후행 공백을 제거 하는 2입니다. 최대 전에 발생 하면 첫 번째 줄 바꿈까지 문자열 (하지만 한 제외)이 반환 됩니다.

3. 메모 (트림된)의 길이 최대 보다 작은 경우에 4는 반환 됩니다. '...'를 사용 하 여 첫 번째 최대 문자 문자열이 그 뒤에 반환 됩니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

NotificationEvent 클래스

Microsoft.TeamFoundation.VersionControl.Common 네임스페이스