BeginParticipate Method (IEnumerable(SignalingHeader), AsyncCallback, Object)

Participates in a session.

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

Syntax

'Declaration
Public Function BeginParticipate ( _
    signalingHeaders As IEnumerable(Of SignalingHeader), _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As SignalingSession
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginParticipate(signalingHeaders, _
    userCallback, state)
public IAsyncResult BeginParticipate(
    IEnumerable<SignalingHeader> signalingHeaders,
    AsyncCallback userCallback,
    Object state
)

Parameters

Return Value

Type: System..::..IAsyncResult
An [IAsyncResult] that references this operation.

Exceptions

Exception Condition
ArgumentNullException

Thrown when a non-nullNothingnullptrunita null reference (Nothing in Visual Basic) is expected for an argument. The argument name for which a non-nullNothingnullptrunita null reference (Nothing in Visual Basic) is expected is part of the exception message.

RealTimeException

Thrown when some other failure occurs.

ArgumentException

Thrown when invalid arguments are passed.

InvalidOperationException

Thrown when the session is not in a valid state to accept or when Accept is called again while another Accept is pending.

Remarks

This method needs to be called (for both outgoing and incoming messages) to establish the session.

See Also

Reference

SignalingSession Class

SignalingSession Members

BeginParticipate Overload

Microsoft.Rtc.Signaling Namespace