MeteringHttpClient.ReportUsage Method
Namespace: Microsoft.VisualStudio.Services.Commerce.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Overridable Function ReportUsage ( _
eventUserid As Guid, _
resourceName As ResourceName, _
quantity As Integer, _
eventId As String, _
billingEventDateTime As DateTime, _
userState As Object _
) As Task
public virtual Task ReportUsage(
Guid eventUserid,
ResourceName resourceName,
int quantity,
string eventId,
DateTime billingEventDateTime,
Object userState
)
public:
virtual Task^ ReportUsage(
Guid eventUserid,
ResourceName resourceName,
int quantity,
String^ eventId,
DateTime billingEventDateTime,
Object^ userState
)
abstract ReportUsage :
eventUserid:Guid *
resourceName:ResourceName *
quantity:int *
eventId:string *
billingEventDateTime:DateTime *
userState:Object -> Task
override ReportUsage :
eventUserid:Guid *
resourceName:ResourceName *
quantity:int *
eventId:string *
billingEventDateTime:DateTime *
userState:Object -> Task
public function ReportUsage(
eventUserid : Guid,
resourceName : ResourceName,
quantity : int,
eventId : String,
billingEventDateTime : DateTime,
userState : Object
) : Task
Parameters
- eventUserid
Type: System.Guid
- resourceName
Type: Microsoft.VisualStudio.Services.Commerce.ResourceName
- quantity
Type: System.Int32
- eventId
Type: System.String
- billingEventDateTime
Type: System.DateTime
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.