Class TypeArgumentOutOfRangeException
The exception that is thrown when the value of an type argument is outside the allowable range of values as defined by the invoked method.
Inheritance
Implements
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
[Serializable]
public class TypeArgumentOutOfRangeException : ArgumentOutOfRangeException, ISerializable
Constructors
| Improve this Doc View SourceTypeArgumentOutOfRangeException()
Initializes a new instance of the TypeArgumentOutOfRangeException class.
Declaration
public TypeArgumentOutOfRangeException()
TypeArgumentOutOfRangeException(SerializationInfo, StreamingContext)
Initializes a new instance of the TypeArgumentOutOfRangeException class.
Declaration
protected TypeArgumentOutOfRangeException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |
TypeArgumentOutOfRangeException(String)
Initializes a new instance of the TypeArgumentOutOfRangeException class.
Declaration
public TypeArgumentOutOfRangeException(string typeParamName)
Parameters
Type | Name | Description |
---|---|---|
String | typeParamName | The name of the type parameter that caused the exception. |
TypeArgumentOutOfRangeException(String, Exception)
Initializes a new instance of the TypeArgumentOutOfRangeException class.
Declaration
public TypeArgumentOutOfRangeException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
TypeArgumentOutOfRangeException(String, Object, String)
Initializes a new instance of the TypeArgumentOutOfRangeException class.
Declaration
public TypeArgumentOutOfRangeException(string typeParamName, object actualValue, string message)
Parameters
Type | Name | Description |
---|---|---|
String | typeParamName | The name of the type parameter that caused the exception. |
Object | actualValue | The value of the argument that causes this exception. |
String | message | The message that describes the error. |
TypeArgumentOutOfRangeException(String, String)
Initializes a new instance of the TypeArgumentOutOfRangeException class.
Declaration
public TypeArgumentOutOfRangeException(string typeParamName, string message)
Parameters
Type | Name | Description |
---|---|---|
String | typeParamName | The name of the type parameter that caused the exception. |
String | message | The message that describes the error. |