StrongTypingException Constructors

Definition

Initializes a new instance of the StrongTypingException class.

Overloads

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)
Obsolete.

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()

Source:
StrongTypingException.cs
Source:
StrongTypingException.cs
Source:
StrongTypingException.cs

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)

Source:
StrongTypingException.cs
Source:
StrongTypingException.cs
Source:
StrongTypingException.cs

Initializes a new instance of the StrongTypingException class with the specified string.

public:
 StrongTypingException(System::String ^ message);
public StrongTypingException (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)

Source:
StrongTypingException.cs
Source:
StrongTypingException.cs
Source:
StrongTypingException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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

context
StreamingContext

A StreamingContext structure.

Attributes

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)

Source:
StrongTypingException.cs
Source:
StrongTypingException.cs
Source:
StrongTypingException.cs

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);
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.

Applies to