OfferInReInviteEventArgs.BeginDecline Method
Decline the offer with a specific reason. The operation will complete when the ACK message is received.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public MustOverride Function BeginDecline ( _
responseCode As Integer, _
reasonPhrase As String, _
signalingHeaders As IEnumerable(Of SignalingHeader), _
contentType As ContentType, _
body As Byte(), _
userCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As OfferInReInviteEventArgs
Dim responseCode As Integer
Dim reasonPhrase As String
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim contentType As ContentType
Dim body As Byte()
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginDecline(responseCode, _
reasonPhrase, signalingHeaders, _
contentType, body, userCallback, _
state)
public abstract IAsyncResult BeginDecline(
int responseCode,
string reasonPhrase,
IEnumerable<SignalingHeader> signalingHeaders,
ContentType contentType,
byte[] body,
AsyncCallback userCallback,
Object state
)
Parameters
- responseCode
Type: System.Int32
The response code to decline with.
- reasonPhrase
Type: System.String
The reason phrase to use. Can be null.
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
The signaling headers to use in the response. Can be null.
- contentType
Type: System.Net.Mime.ContentType
The content type of the body. Can be null if body is null.
- body
Type: []
The body to send.
- 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 |
---|---|
InvalidOperationException | Thrown when called in an invalid state or a final response has already been sent. |
ArgumentOutOfRangeException | The response code is not in the range expected. |
ArgumentException | Thrown when there are problems with arguments supplied. |
RealTimeException | Thrown when the response cannot be sent for other reasons. |
See Also
Reference
OfferInReInviteEventArgs Class