Declines the incoming transfer. This will result in sending a failure response.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Protected 
Sub 
DeclineWithResponse ( _
	
declineOptions 
As 

CallDeclineOptions _
)
C#
protected 
void 
DeclineWithResponse(
	

CallDeclineOptions 
declineOptions
)
Visual C++
protected:
void 
DeclineWithResponse(
	

CallDeclineOptions^ 
declineOptions
)
JavaScript
function 
declineWithResponse(
declineOptions);

Parameters

declineOptions
Type: Microsoft.Rtc.Collaboration . . :: . CallDeclineOptions
Options to use when declining an incoming transfer request.

Exceptions

Exception Condition
ArgumentNullException Thrown when the argument declineOptionsis null.
ArgumentOutOfRangeException Thrown when the response code in declineOptionswas not in the expected range.
InvalidOperationException Thrown when there is no transaction to decline.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when there was a transport error.

See Also