Initializes a new instance of the class with a specific reason for the failure.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
message 
As 
String, _
	
innerException 
As 
Exception, _
	
failureReason 
As 

InvalidOperationReason _
)
C#
public 
RealTimeInvalidOperationException(
	
string 
message,
	
Exception 
innerException,
	

InvalidOperationReason 
failureReason
)
Visual C++
public:
RealTimeInvalidOperationException(
	
String^ 
message, 
	
Exception^ 
innerException, 
	

InvalidOperationReason 
failureReason
)
JavaScript

Microsoft.Rtc.Signaling.RealTimeInvalidOperationException = 
function(
message, 
innerException, 
failureReason);

Parameters

message
Type: String
The error message that explains the reason for the exception.
innerException
Type: Exception
The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.
failureReason
Type: Microsoft.Rtc.Signaling . . :: . InvalidOperationReason
The reason for the failure of the operation.

See Also