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.

C#
public StrongTypingException();

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

.NET 10 ja muud versioonid
Toode Versioonid
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

StrongTypingException(String)

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

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

C#
public StrongTypingException(string? message);
C#
public StrongTypingException(string message);

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

.NET 10 ja muud versioonid
Toode Versioonid
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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.

C#
[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);
C#
protected StrongTypingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

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

.NET 10 ja muud versioonid
Toode Versioonid (aegunud)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8, 9, 10)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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.

C#
public StrongTypingException(string? s, Exception? innerException);
C#
public StrongTypingException(string s, Exception innerException);

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

.NET 10 ja muud versioonid
Toode Versioonid
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1