다음을 통해 공유


IMeteringService.ReportUsage 메서드

청구 파이프라인 현황 정보를 보냅니다. 이 메서드가 요청 컨텍스트를 사용자 id 사용 하 여 응용 프로그램 수준에서 해야 한다는 note입니다.

네임스페이스:  Microsoft.VisualStudio.Services.Commerce
어셈블리:  Microsoft.TeamFoundation.Framework.Server(Microsoft.TeamFoundation.Framework.Server.dll)

구문

‘선언
Sub ReportUsage ( _
    requestContext As TeamFoundationRequestContext, _
    eventUserId As Guid, _
    resourceName As ResourceName, _
    quantity As Integer, _
    eventId As String, _
    billingEventDateTime As DateTime _
)
void ReportUsage(
    TeamFoundationRequestContext requestContext,
    Guid eventUserId,
    ResourceName resourceName,
    int quantity,
    string eventId,
    DateTime billingEventDateTime
)

매개 변수

  • eventUserId
    형식: System.Guid
    결제 이벤트를 시작한 사용자 id
  • quantity
    형식: System.Int32
    결제 이벤트에 사용 되는 수량
  • eventId
    형식: System.String
    청구 이벤트에 대 한 사람이 읽을 수 있는 식별자를 고유
  • billingEventDateTime
    형식: System.DateTime
    이벤트가 시작 되는 타임 스탬프

예외

예외 조건
InvalidResourceException

InvalidResourceException이 throw 됩니다 리소스가 잘못 되었습니다.

.NET Framework 보안

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

참고 항목

참조

IMeteringService 인터페이스

Microsoft.VisualStudio.Services.Commerce 네임스페이스