Show / Hide Table of Contents

Class TypeArgumentException

The exception that is thrown when one of the type arguments provided to a method is not valid.

Inheritance
Object
Exception
SystemException
ArgumentException
TypeArgumentException
Implements
ISerializable
Inherited Members
ArgumentException.GetObjectData(SerializationInfo, StreamingContext)
ArgumentException.Message
ArgumentException.ParamName
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
[Serializable]
public class TypeArgumentException : ArgumentException, ISerializable

Constructors

| Improve this Doc View Source

TypeArgumentException()

Initializes a new instance of the TypeArgumentException class.

Declaration
public TypeArgumentException()
| Improve this Doc View Source

TypeArgumentException(SerializationInfo, StreamingContext)

Initializes a new instance of the TypeArgumentException class.

Declaration
protected TypeArgumentException(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.

| Improve this Doc View Source

TypeArgumentException(String)

Initializes a new instance of the TypeArgumentException class.

Declaration
public TypeArgumentException(string typeParamName)
Parameters
Type Name Description
String typeParamName

The name of the type parameter that caused the exception.

| Improve this Doc View Source

TypeArgumentException(String, Exception)

Initializes a new instance of the TypeArgumentException class.

Declaration
public TypeArgumentException(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.

| Improve this Doc View Source

TypeArgumentException(String, String)

Initializes a new instance of the TypeArgumentException class.

Declaration
public TypeArgumentException(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.

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX