AsnContentException Constructors

Definition

Overloads

AsnContentException()

Initializes a new instance of the AsnContentException class, using the default message.

AsnContentException(String)

Initializes a new instance of the AsnContentException class, using the provided message.

AsnContentException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the AsnContentException class with serialized data.

AsnContentException(String, Exception)

Initializes a new instance of the AsnContentException class, using the provided message and exception that is the cause of this exception.

AsnContentException()

Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs

Initializes a new instance of the AsnContentException class, using the default message.

C#
public AsnContentException();

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

AsnContentException(String)

Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs

Initializes a new instance of the AsnContentException class, using the provided message.

C#
public AsnContentException(string? message);

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

AsnContentException(SerializationInfo, StreamingContext)

Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.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 AsnContentException class with serialized data.

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

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Attributes

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie (Zastarané)
.NET 5, 6, 7 (8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10)
.NET Standard 2.0 (package-provided)

AsnContentException(String, Exception)

Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs
Source:
AsnContentException.cs

Initializes a new instance of the AsnContentException class, using the provided message and exception that is the cause of this exception.

C#
public AsnContentException(string? message, Exception? inner);

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)