Sdílet prostřednictvím


PhoneNumbersModelFactory.PhoneNumberCost Method

Definition

Initializes a new instance of PhoneNumberCost.

public static Azure.Communication.PhoneNumbers.PhoneNumberCost PhoneNumberCost (double amount = 0, string isoCurrencySymbol = default, Azure.Communication.PhoneNumbers.BillingFrequency billingFrequency = default);
static member PhoneNumberCost : double * string * Azure.Communication.PhoneNumbers.BillingFrequency -> Azure.Communication.PhoneNumbers.PhoneNumberCost
Public Shared Function PhoneNumberCost (Optional amount As Double = 0, Optional isoCurrencySymbol As String = Nothing, Optional billingFrequency As BillingFrequency = Nothing) As PhoneNumberCost

Parameters

amount
Double

The cost amount.

isoCurrencySymbol
String

The ISO 4217 currency code for the cost amount, e.g. USD.

billingFrequency
BillingFrequency

The frequency with which the cost gets billed.

Returns

A new PhoneNumberCost instance for mocking.

Exceptions

isoCurrencySymbol is null.

Applies to