Share via


AudioVideoCall.BeginPark Method

Initiates a park request to the provisioned call park server.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function BeginPark ( _
    options As CallParkOptions, _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As AudioVideoCall
Dim options As CallParkOptions
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginPark(options, _
    userCallback, state)
public IAsyncResult BeginPark(
    CallParkOptions options,
    AsyncCallback userCallback,
    Object state
)

Parameters

  • userCallback
    Type: System.AsyncCallback
    The method to be called when the asynchronous operation is completed.
  • state
    Type: System.Object
    A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation.

Exceptions

Exception Condition
ArgumentException

Thrown when options parameter contains invalid or restricted signaling headers.

InvalidOperationException

Thrown when the call is not in valid state to perform this operation.

Remarks

When the park operation completes successfully, this call will be terminated. Other calls in the same conversation will continue to stay established.

See Also

Reference

AudioVideoCall Class

AudioVideoCall Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace