共用方式為


CallAutomationModelFactory.CallConnectionProperties Method

Definition

Initializes a new instance of CallConnectionProperties.

public static Azure.Communication.CallAutomation.CallConnectionProperties CallConnectionProperties (string callConnectionId = default, string serverCallId = default, System.Collections.Generic.IEnumerable<Azure.Communication.CommunicationIdentifier> targets = default, Azure.Communication.CallAutomation.CallConnectionState callConnectionState = default, Uri callbackUri = default, Azure.Communication.CommunicationIdentifier sourceIdentity = default, Azure.Communication.PhoneNumberIdentifier sourceCallerIdNumber = default, string sourceDisplayName = default, Azure.Communication.CommunicationIdentifier answeredBy = default);
static member CallConnectionProperties : string * string * seq<Azure.Communication.CommunicationIdentifier> * Azure.Communication.CallAutomation.CallConnectionState * Uri * Azure.Communication.CommunicationIdentifier * Azure.Communication.PhoneNumberIdentifier * string * Azure.Communication.CommunicationIdentifier -> Azure.Communication.CallAutomation.CallConnectionProperties
Public Shared Function CallConnectionProperties (Optional callConnectionId As String = Nothing, Optional serverCallId As String = Nothing, Optional targets As IEnumerable(Of CommunicationIdentifier) = Nothing, Optional callConnectionState As CallConnectionState = Nothing, Optional callbackUri As Uri = Nothing, Optional sourceIdentity As CommunicationIdentifier = Nothing, Optional sourceCallerIdNumber As PhoneNumberIdentifier = Nothing, Optional sourceDisplayName As String = Nothing, Optional answeredBy As CommunicationIdentifier = Nothing) As CallConnectionProperties

Parameters

callConnectionId
String

The call connection id.

serverCallId
String

The server call id.

targets
IEnumerable<CommunicationIdentifier>

The targets of the call.

callConnectionState
CallConnectionState

The state of the call connection.

callbackUri
Uri

The callback URI.

sourceIdentity
CommunicationIdentifier

Source identity.

sourceCallerIdNumber
PhoneNumberIdentifier

Caller ID phone number to appear on the invitee.

sourceDisplayName
String

Display name to appear on the invitee.

answeredBy
CommunicationIdentifier

AnsweredBy identity.

Returns

A new CallConnectionProperties instance for mocking.

Applies to