共用方式為


CborContentException Constructors

Definition

Overloads

CborContentException(String)

Initializes a new instance of the CborContentException class using the provided message.

CborContentException(SerializationInfo, StreamingContext)
Obsolete.

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

CborContentException(String, Exception)

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

CborContentException(String)

Source:
CborContentException.cs
Source:
CborContentException.cs
Source:
CborContentException.cs

Initializes a new instance of the CborContentException class using the provided message.

public:
 CborContentException(System::String ^ message);
public CborContentException (string? message);
new System.Formats.Cbor.CborContentException : string -> System.Formats.Cbor.CborContentException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

CborContentException(SerializationInfo, StreamingContext)

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

protected:
 CborContentException(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 CborContentException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected CborContentException (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}")>]
new System.Formats.Cbor.CborContentException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Formats.Cbor.CborContentException
new System.Formats.Cbor.CborContentException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Formats.Cbor.CborContentException
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

CborContentException(String, Exception)

Source:
CborContentException.cs
Source:
CborContentException.cs
Source:
CborContentException.cs

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

public:
 CborContentException(System::String ^ message, Exception ^ inner);
public CborContentException (string? message, Exception? inner);
new System.Formats.Cbor.CborContentException : string * Exception -> System.Formats.Cbor.CborContentException
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.

Applies to