OfferInReInviteEventArgs.BeginDecline Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decline the offer with a specific reason. The operation will complete when the ACK message is received.
public:
abstract IAsyncResult ^ BeginDecline(int responseCode, System::String ^ reasonPhrase, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ signalingHeaders, System::Net::Mime::ContentType ^ contentType, cli::array <System::Byte> ^ body, AsyncCallback ^ userCallback, System::Object ^ state);
public abstract IAsyncResult BeginDecline (int responseCode, string reasonPhrase, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> signalingHeaders, System.Net.Mime.ContentType contentType, byte[] body, AsyncCallback userCallback, object state);
abstract member BeginDecline : int * string * seq<Microsoft.Rtc.Signaling.SignalingHeader> * System.Net.Mime.ContentType * byte[] * AsyncCallback * obj -> IAsyncResult
Parameters
- responseCode
- Int32
The response code to decline with.
- reasonPhrase
- String
The reason phrase to use. Can be null.
- signalingHeaders
- IEnumerable<SignalingHeader>
The signaling headers to use in the response. Can be null.
- contentType
- ContentType
The content type of the body. Can be null if body is null.
- body
- Byte[]
The body to send.
- userCallback
- AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
- Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when called in an invalid state or a final response has already been sent.
The response code is not in the range expected.
Thrown when there are problems with arguments supplied.
Thrown when the response cannot be sent for other reasons.