Partilhar via


IMeteringService.TogglePaidBilling Method

Toggles paid billing state for the specified account id and resource name. The specified resource must be a pay as go resource otherwise an argument exception is thrown back to the caller.

Namespace:  Microsoft.VisualStudio.Services.Commerce
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Sub TogglePaidBilling ( _
    requestContext As TeamFoundationRequestContext, _
    resourceName As ResourceName, _
    paidBillingState As Boolean _
)
void TogglePaidBilling(
    TeamFoundationRequestContext requestContext,
    ResourceName resourceName,
    bool paidBillingState
)
void TogglePaidBilling(
    TeamFoundationRequestContext^ requestContext, 
    ResourceName resourceName, 
    bool paidBillingState
)
abstract TogglePaidBilling : 
        requestContext:TeamFoundationRequestContext * 
        resourceName:ResourceName * 
        paidBillingState:bool -> unit
function TogglePaidBilling(
    requestContext : TeamFoundationRequestContext, 
    resourceName : ResourceName, 
    paidBillingState : boolean
)

Parameters

  • paidBillingState
    Type: System.Boolean

    Desired paid billing state, true to enable and false to disable.

.NET Framework Security

See Also

Reference

IMeteringService Interface

Microsoft.VisualStudio.Services.Commerce Namespace