FailedToInstantiateTypeException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FailedToInstantiateTypeException() |
Initializes a new instance of the FailedToInstantiateTypeException class. |
FailedToInstantiateTypeException(String) |
Initializes a new instance of the FailedToInstantiateTypeException class by using the provided message. |
FailedToInstantiateTypeException(SerializationInfo, StreamingContext) |
Initializes a new instance of the FailedToInstantiateTypeException class by using the provided information and context. |
FailedToInstantiateTypeException(String, Exception) |
Initializes a new instance of the FailedToInstantiateTypeException class by using the provided message and the inner exception. |
FailedToInstantiateTypeException()
Initializes a new instance of the FailedToInstantiateTypeException class.
public:
FailedToInstantiateTypeException();
public FailedToInstantiateTypeException ();
Public Sub New ()
Applies to
FailedToInstantiateTypeException(String)
Initializes a new instance of the FailedToInstantiateTypeException class by using the provided message.
public:
FailedToInstantiateTypeException(System::String ^ msg);
public FailedToInstantiateTypeException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.FailedToInstantiateTypeException : string -> Microsoft.VisualStudio.TestTools.Exceptions.FailedToInstantiateTypeException
Public Sub New (msg As String)
Parameters
- msg
- String
Message that describes the exception.
Applies to
FailedToInstantiateTypeException(SerializationInfo, StreamingContext)
Initializes a new instance of the FailedToInstantiateTypeException class by using the provided information and context.
protected:
FailedToInstantiateTypeException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected FailedToInstantiateTypeException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.FailedToInstantiateTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.FailedToInstantiateTypeException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Information about the exception.
- context
- StreamingContext
The source and the destination of the exception.
Applies to
FailedToInstantiateTypeException(String, Exception)
Initializes a new instance of the FailedToInstantiateTypeException class by using the provided message and the inner exception.
public:
FailedToInstantiateTypeException(System::String ^ msg, Exception ^ inner);
public FailedToInstantiateTypeException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.FailedToInstantiateTypeException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.FailedToInstantiateTypeException
Public Sub New (msg As String, inner As Exception)
Parameters
- msg
- String
Message that describes the exception.
- inner
- Exception
Exception that caused the current exception.