JsonException Constructors

Definitie

Overloads

Name Description
JsonException()

Initialiseert een nieuw exemplaar van de JsonException klasse.

JsonException(String)

Initialiseert een nieuw exemplaar van de JsonException klasse met een opgegeven foutbericht.

JsonException(SerializationInfo, StreamingContext)
Verouderd.

Hiermee maakt u een nieuw uitzonderingsobject met geserialiseerde gegevens.

JsonException(String, Exception)

Initialiseert een nieuw exemplaar van de JsonException klasse, met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is.

JsonException(String, String, Nullable<Int64>, Nullable<Int64>)

Hiermee maakt u een nieuw uitzonderingsobject om foutinformatie door te sturen naar de gebruiker.

JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception)

Hiermee maakt u een nieuw uitzonderingsobject om foutinformatie door te sturen naar de gebruiker die een opgegeven interne uitzondering bevat.

JsonException()

Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs

Initialiseert een nieuw exemplaar van de JsonException klasse.

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

Van toepassing op

JsonException(String)

Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs

Initialiseert een nieuw exemplaar van de JsonException klasse met een opgegeven foutbericht.

public:
 JsonException(System::String ^ message);
public JsonException(string? message);
public JsonException(string message);
new System.Text.Json.JsonException : string -> System.Text.Json.JsonException
Public Sub New (message As String)

Parameters

message
String

Het contextspecifieke foutbericht.

Van toepassing op

JsonException(SerializationInfo, StreamingContext)

Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs

Let op

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

Hiermee maakt u een nieuw uitzonderingsobject met geserialiseerde gegevens.

protected:
 JsonException(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 JsonException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected JsonException(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.Text.Json.JsonException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.Json.JsonException
new System.Text.Json.JsonException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.Json.JsonException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

De geserialiseerde objectgegevens over de uitzondering die wordt gegenereerd.

context
StreamingContext

Een object met contextuele informatie over de bron of bestemming.

Kenmerken

Uitzonderingen

info is null.

Van toepassing op

JsonException(String, Exception)

Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs

Initialiseert een nieuw exemplaar van de JsonException klasse, met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is.

public:
 JsonException(System::String ^ message, Exception ^ innerException);
public JsonException(string? message, Exception? innerException);
public JsonException(string message, Exception innerException);
new System.Text.Json.JsonException : string * Exception -> System.Text.Json.JsonException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

Het contextspecifieke foutbericht.

innerException
Exception

De uitzondering die de huidige uitzondering heeft veroorzaakt.

Van toepassing op

JsonException(String, String, Nullable<Int64>, Nullable<Int64>)

Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs

Hiermee maakt u een nieuw uitzonderingsobject om foutinformatie door te sturen naar de gebruiker.

public:
 JsonException(System::String ^ message, System::String ^ path, Nullable<long> lineNumber, Nullable<long> bytePositionInLine);
public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine);
public JsonException(string message, string path, long? lineNumber, long? bytePositionInLine);
new System.Text.Json.JsonException : string * string * Nullable<int64> * Nullable<int64> -> System.Text.Json.JsonException
Public Sub New (message As String, path As String, lineNumber As Nullable(Of Long), bytePositionInLine As Nullable(Of Long))

Parameters

message
String

Het contextspecifieke foutbericht.

path
String

Het pad waar de ongeldige JSON is aangetroffen.

lineNumber
Nullable<Int64>

Het regelnummer (beginnend bij 0) waarop de ongeldige JSON is aangetroffen bij het deserialiseren.

bytePositionInLine
Nullable<Int64>

Het byteaantal binnen de huidige regel (beginnend bij 0) waar de ongeldige JSON is aangetroffen.

Opmerkingen

Houd er rekening mee dat bytePositionInLine het aantal bytes (dat wil gezegd UTF-8-code-eenheden) tellen en niet tekens of scalaire tekens.

Van toepassing op

JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception)

Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs
Bron:
JsonException.cs

Hiermee maakt u een nieuw uitzonderingsobject om foutinformatie door te sturen naar de gebruiker die een opgegeven interne uitzondering bevat.

public:
 JsonException(System::String ^ message, System::String ^ path, Nullable<long> lineNumber, Nullable<long> bytePositionInLine, Exception ^ innerException);
public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException);
public JsonException(string message, string path, long? lineNumber, long? bytePositionInLine, Exception innerException);
new System.Text.Json.JsonException : string * string * Nullable<int64> * Nullable<int64> * Exception -> System.Text.Json.JsonException
Public Sub New (message As String, path As String, lineNumber As Nullable(Of Long), bytePositionInLine As Nullable(Of Long), innerException As Exception)

Parameters

message
String

Het contextspecifieke foutbericht.

path
String

Het pad waar de ongeldige JSON is aangetroffen.

lineNumber
Nullable<Int64>

Het regelnummer (beginnend bij 0) waarop de ongeldige JSON is aangetroffen bij het deserialiseren.

bytePositionInLine
Nullable<Int64>

Het aantal bytes (beginnend bij 0) binnen de huidige regel waarop de ongeldige JSON is aangetroffen.

innerException
Exception

De uitzondering die de huidige uitzondering heeft veroorzaakt.

Opmerkingen

Houd er rekening mee dat het bytePositionInLine aantal bytes (dat wil gezegd UTF-8-codeeenheden) tellen en niet tekens of scalaire tekens.

Van toepassing op