OfferInReInviteEventArgs.Decline Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Declines the media offer with the specific response code.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in microsoft.rtc.collaboration.dll)
Syntax
'Declaration
Public Function Decline ( _
responseCode As Integer, _
reasonPhrase As String, _
signalingHeaders As IEnumerable(Of SignalingHeader), _
contentType As ContentType, _
body As Byte() _
) As SipRequestData
public SipRequestData Decline (
int responseCode,
string reasonPhrase,
IEnumerable<SignalingHeader> signalingHeaders,
ContentType contentType,
byte[] body
)
Parameters
- responseCode
The response code to decline with.
- reasonPhrase
The reason phrase to use, which can be null.
- signalingHeaders
The signaling headers to use in the response, which can be null.
- contentType
The content type of the body, which can be null if body is null.
- body
The body to send.
Return Value
Returns the ack data received.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | The response code is not in the range expected. |
ArgumentException | Thrown when there are problems with arguments supplied. |
InvalidOperationException | Thrown when called in an invalid state or a final response has already been sent. |
RealTimeException | Thrown when the response cannot be sent for other reasons. |
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
See Also
Reference
OfferInReInviteEventArgs Class
OfferInReInviteEventArgs Members
Microsoft.Rtc.Signaling Namespace