TeamFoundationNotificationService.SubscribeEvent 메서드 (TeamFoundationRequestContext, IdentityDescriptor, String, String, DeliveryPreference, String)

SubscribeEvent는 서버에서 발생 하는 이벤트를 새 이벤트 구독을 만드는 데 사용 됩니다. 구독은 특정 이벤트를 받을 수 있도록 사용자에 게 사용할 수 있는 필터의 수를 가질 수 있습니다.

네임스페이스:  Microsoft.TeamFoundation.Server.Core
어셈블리:  Microsoft.TeamFoundation.Server.Core(Microsoft.TeamFoundation.Server.Core.dll)

구문

‘선언
Public Function SubscribeEvent ( _
    requestContext As TeamFoundationRequestContext, _
    user As IdentityDescriptor, _
    eventType As String, _
    filterExpression As String, _
    preferences As DeliveryPreference, _
    classification As String _
) As Integer
public int SubscribeEvent(
    TeamFoundationRequestContext requestContext,
    IdentityDescriptor user,
    string eventType,
    string filterExpression,
    DeliveryPreference preferences,
    string classification
)

매개 변수

  • eventType
    형식: System.String
    가입할 이벤트의 형식입니다.
  • filterExpression
    형식: System.String
    이벤트에 적용할 필터입니다.
  • classification
    형식: System.String
    선택 사항: 일부 이벤트 특정 이벤트를 정확 하 게 필터 조건으로 사용할 수 있는 분류를 정의 합니다.

반환 값

형식: System.Int32
구독 식별자입니다.

.NET Framework 보안

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

참고 항목

참조

TeamFoundationNotificationService 클래스

SubscribeEvent 오버로드

Microsoft.TeamFoundation.Server.Core 네임스페이스