AsnContentException 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
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.
public:
AsnContentException();
public AsnContentException ();
Public Sub New ()
Applies to
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.
public:
AsnContentException(System::String ^ message);
public AsnContentException (string? message);
new System.Formats.Asn1.AsnContentException : string -> System.Formats.Asn1.AsnContentException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
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.
protected:
AsnContentException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AsnContentException (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 AsnContentException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Formats.Asn1.AsnContentException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Formats.Asn1.AsnContentException
[<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.Formats.Asn1.AsnContentException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Formats.Asn1.AsnContentException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized object data.
- context
- StreamingContext
The contextual information about the source or destination.
- Attributes
Applies to
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.
public:
AsnContentException(System::String ^ message, Exception ^ inner);
public AsnContentException (string? message, Exception? inner);
new System.Formats.Asn1.AsnContentException : string * Exception -> System.Formats.Asn1.AsnContentException
Public Sub New (message As String, inner As Exception)
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.