StrongTypingException 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.
Initializes a new instance of the StrongTypingException class.
Overloads
| Name | Description |
|---|---|
| StrongTypingException() |
Initializes a new instance of the StrongTypingException class. |
| StrongTypingException(String) |
Initializes a new instance of the StrongTypingException class with the specified string. |
| StrongTypingException(SerializationInfo, StreamingContext) |
Initializes a new instance of the StrongTypingException class using the specified serialization information and streaming context. |
| StrongTypingException(String, Exception) |
Initializes a new instance of the StrongTypingException class with the specified string and inner exception. |
StrongTypingException()
Initializes a new instance of the StrongTypingException class.
public:
StrongTypingException();
public StrongTypingException();
Public Sub New ()
Remarks
The StrongTypingException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.
Applies to
StrongTypingException(String)
Initializes a new instance of the StrongTypingException class with the specified string.
public:
StrongTypingException(System::String ^ message);
public StrongTypingException(string message);
new System.Data.StrongTypingException : string -> System.Data.StrongTypingException
Public Sub New (message As String)
Parameters
- message
- String
The string to display when the exception is thrown.
Remarks
The StrongTypingException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.
Applies to
StrongTypingException(SerializationInfo, StreamingContext)
Initializes a new instance of the StrongTypingException class using the specified serialization information and streaming context.
protected:
StrongTypingException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected StrongTypingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.StrongTypingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.StrongTypingException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
A SerializationInfo object.
- context
- StreamingContext
A StreamingContext structure.
Remarks
The StrongTypingException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.
Applies to
StrongTypingException(String, Exception)
Initializes a new instance of the StrongTypingException class with the specified string and inner exception.
public:
StrongTypingException(System::String ^ s, Exception ^ innerException);
public StrongTypingException(string s, Exception innerException);
new System.Data.StrongTypingException : string * Exception -> System.Data.StrongTypingException
Public Sub New (s As String, innerException As Exception)
Parameters
- s
- String
The string to display when the exception is thrown.
- innerException
- Exception
A reference to an inner exception.
Remarks
The StrongTypingException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.