AsnContentException 构造函数

定义

重载

AsnContentException()

使用默认消息初始化 AsnContentException 类的新实例。

AsnContentException(String)

使用提供的消息初始化 AsnContentException 类的新实例。

AsnContentException(SerializationInfo, StreamingContext)
已过时.

用序列化数据初始化 AsnContentException 类的新实例。

AsnContentException(String, Exception)

使用提供的消息和引发此异常的异常初始化 AsnContentException 类的新实例。

AsnContentException()

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

使用默认消息初始化 AsnContentException 类的新实例。

public:
 AsnContentException();
public AsnContentException ();
Public Sub New ()

适用于

AsnContentException(String)

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

使用提供的消息初始化 AsnContentException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

适用于

AsnContentException(SerializationInfo, StreamingContext)

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

注意

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

用序列化数据初始化 AsnContentException 类的新实例。

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)

参数

info
SerializationInfo

承载序列化对象数据的对象。

context
StreamingContext

关于来源和目标的上下文信息

属性

适用于

AsnContentException(String, Exception)

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

使用提供的消息和引发此异常的异常初始化 AsnContentException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

inner
Exception

导致当前异常的异常。

适用于