OfferInReInviteEventArgs.Decline 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.
Synchronously declines the media offer with the specific response code.
public:
Microsoft::Rtc::Signaling::SipRequestData ^ Decline(int responseCode, System::String ^ reasonPhrase, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ signalingHeaders, System::Net::Mime::ContentType ^ contentType, cli::array <System::Byte> ^ body);
public Microsoft.Rtc.Signaling.SipRequestData Decline (int responseCode, string reasonPhrase, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> signalingHeaders, System.Net.Mime.ContentType contentType, byte[] body);
member this.Decline : int * string * seq<Microsoft.Rtc.Signaling.SignalingHeader> * System.Net.Mime.ContentType * byte[] -> Microsoft.Rtc.Signaling.SipRequestData
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.
Returns
Returns the ack data received.
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 ack is not received.
Thrown when the response cannot be sent for other reasons.
Remarks
This method is not recommended for UI threads or scalable server applications.