Share via


AsnContentException 建構函式

定義

多載

AsnContentException()

使用預設訊息初始化 AsnContentException 類別的新執行個體。

AsnContentException(String)

使用提供的訊息初始化 AsnContentException 類別的新執行個體。

AsnContentException(SerializationInfo, StreamingContext)
已淘汰.

使用序列化資料,初始化 AsnContentException 類別的新執行個體。

AsnContentException(String, Exception)

使用提供的訊息與造成此例外狀況的例外狀況,來初始化 AsnContentException 類別的新執行個體。

AsnContentException()

來源:
AsnContentException.cs
來源:
AsnContentException.cs
來源:
AsnContentException.cs

使用預設訊息初始化 AsnContentException 類別的新執行個體。

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

適用於

AsnContentException(String)

來源:
AsnContentException.cs
來源:
AsnContentException.cs
來源:
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)

來源:
AsnContentException.cs
來源:
AsnContentException.cs
來源:
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)

來源:
AsnContentException.cs
來源:
AsnContentException.cs
來源:
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

做為目前例外狀況發生原因的例外狀況。

適用於