Share via


PhoneNumbersModelFactory.OperatorInformation Method

Definition

Initializes a new instance of OperatorInformation.

public static Azure.Communication.PhoneNumbers.OperatorInformation OperatorInformation (string phoneNumber = default, string nationalFormat = default, string internationalFormat = default, string isoCountryCode = default, Azure.Communication.PhoneNumbers.OperatorNumberType? numberType = default, Azure.Communication.PhoneNumbers.OperatorDetails operatorDetails = default);
static member OperatorInformation : string * string * string * string * Nullable<Azure.Communication.PhoneNumbers.OperatorNumberType> * Azure.Communication.PhoneNumbers.OperatorDetails -> Azure.Communication.PhoneNumbers.OperatorInformation
Public Shared Function OperatorInformation (Optional phoneNumber As String = Nothing, Optional nationalFormat As String = Nothing, Optional internationalFormat As String = Nothing, Optional isoCountryCode As String = Nothing, Optional numberType As Nullable(Of OperatorNumberType) = Nothing, Optional operatorDetails As OperatorDetails = Nothing) As OperatorInformation

Parameters

phoneNumber
String

E.164 formatted string representation of the phone number.

nationalFormat
String

National format of the phone number.

internationalFormat
String

International format of the phone number.

isoCountryCode
String

ISO 3166-1 two character ('alpha-2') code associated with the phone number.

numberType
Nullable<OperatorNumberType>

Type of service associated with the phone number.

operatorDetails
OperatorDetails

Represents metadata describing the operator of a phone number.

Returns

A new OperatorInformation instance for mocking.

Applies to