Constructor OperationNotSupportedException
OperationNotSupportedException()
The default constructor of class OperationNtSupportedException.
Declaration
public OperationNotSupportedException()
OperationNotSupportedException(String)
Overloaded constructor that takes the reason as parameter.
Declaration
public OperationNotSupportedException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System. |
reason | Reason of exception. |
OperationNotSupportedException(String, Exception)
An overloaded constructor that takes reason of exception and nested exception as parameters.
Declaration
public OperationNotSupportedException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System. |
reason | Reason of exception. |
System. |
inner | Nested exception. |
OperationNotSupportedException(Int32, String)
An overloaded constructor that takes reason of exception and errorcode as parameters.
Declaration
public OperationNotSupportedException(int errorCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | Assigned errorcode. |
System. |
reason | Reason of exception. |
OperationNotSupportedException(Int32, String, String)
An overloaded constructor that takes reason of exception, errorcode and stacktrace as parameters.
Declaration
public OperationNotSupportedException(int errorCode, string reason, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | Assigned errorcode. |
System. |
reason | Exception message. |
System. |
stackTrace | A string representation of the immediate frames on the call stack. |
OperationNotSupportedException(Int32, String, Exception)
An overloaded constructor that takes reason of exception and nested exception as parameters.
Declaration
public OperationNotSupportedException(int errorCode, string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | Assigned errorcode. |
System. |
reason | Reason of exception. |
System. |
inner | Nested exception. |
OperationNotSupportedException(SerializationInfo, StreamingContext)
An overloaded constructor that takes serialization info and streaming context as parameters.
Declaration
protected OperationNotSupportedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | Stores all the data needed to serialize or deserialize an object. |
System. |
context | Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. |