Decline the offer with a specific reason.
Namespace:
Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in
microsoft.rtc.collaboration.dll)
Syntax
|
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
|
|
public abstract IAsyncResult BeginDecline (
int responseCode,
string reasonPhrase,
IEnumerable<SignalingHeader> signalingHeaders,
ContentType contentType,
byte[] body,
AsyncCallback userCallback,
Object state
)
|
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.
- userCallback
-
The method to be called when the async operation is
completed.
- state
-
The state to be passed back to the callback.
Return Value
An
IAsyncResult that references this operation.
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.
|
Remarks
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