Share via


PhoneNumbersModelFactory.PhoneNumberCountry(String, String) Method

Definition

Initializes a new instance of PhoneNumberCountry.

public static Azure.Communication.PhoneNumbers.PhoneNumberCountry PhoneNumberCountry (string localizedName = default, string countryCode = default);
static member PhoneNumberCountry : string * string -> Azure.Communication.PhoneNumbers.PhoneNumberCountry
Public Shared Function PhoneNumberCountry (Optional localizedName As String = Nothing, Optional countryCode As String = Nothing) As PhoneNumberCountry

Parameters

localizedName
String

Represents the name of the country.

countryCode
String

Represents the abbreviated name of the country.

Returns

A new PhoneNumberCountry instance for mocking.

Exceptions

localizedName or countryCode is null.

Applies to