Skip to content

Utf8JsonWriter.WriteNumber Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll

Overloads

Method Description
WriteNumber(JsonEncodedText, decimal) Writes the pre-encoded property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, decimal) Writes the property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, decimal) Writes the property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, decimal) Writes the property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(JsonEncodedText, double) Writes the pre-encoded property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, double) Writes the property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, double) Writes the property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, double) Writes the property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(JsonEncodedText, float) Writes the pre-encoded property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, float) Writes the property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, float) Writes the property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, float) Writes the property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(JsonEncodedText, long) Writes the pre-encoded property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, long) Writes the property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, long) Writes the property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, long) Writes the property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(JsonEncodedText, int) Writes the pre-encoded property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, int) Writes the property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, int) Writes the property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, int) Writes the property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(JsonEncodedText, ulong) Writes the pre-encoded property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, ulong) Writes the property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, ulong) Writes the property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, ulong) Writes the property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(JsonEncodedText, uint) Writes the pre-encoded property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(string, uint) Writes the property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<char>, uint) Writes the property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
WriteNumber(ReadOnlySpan<byte>, uint) Writes the property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.

WriteNumber(JsonEncodedText, decimal)

Source: Utf8JsonWriter.WriteProperties.Decimal.cs

Writes the pre-encoded property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, decimal value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write.
value decimal The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Decimal using the default StandardFormat (that is, 'G').

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, decimal)

Source: Utf8JsonWriter.WriteProperties.Decimal.cs

Writes the property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, decimal value)

Parameters

Name Type Description
propertyName string The name of the property to write.
value decimal The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Decimal using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, decimal)

Source: Utf8JsonWriter.WriteProperties.Decimal.cs

Writes the property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, decimal value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write.
value decimal The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Decimal using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, decimal)

Source: Utf8JsonWriter.WriteProperties.Decimal.cs

Writes the property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, decimal value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write.
value decimal The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Decimal using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(JsonEncodedText, double)

Source: Utf8JsonWriter.WriteProperties.Double.cs

Writes the pre-encoded property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, double value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write.
value double The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Double using the default StandardFormat (that is, 'G').

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, double)

Source: Utf8JsonWriter.WriteProperties.Double.cs

Writes the property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, double value)

Parameters

Name Type Description
propertyName string The name of the property to write.
value double The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Double using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, double)

Source: Utf8JsonWriter.WriteProperties.Double.cs

Writes the property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, double value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write.
value double The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Double using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, double)

Source: Utf8JsonWriter.WriteProperties.Double.cs

Writes the property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, double value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write.
value double The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Double using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(JsonEncodedText, float)

Source: Utf8JsonWriter.WriteProperties.Float.cs

Writes the pre-encoded property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, float value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write..
value float The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Single using the default StandardFormat (that is, 'G').

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, float)

Source: Utf8JsonWriter.WriteProperties.Float.cs

Writes the property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, float value)

Parameters

Name Type Description
propertyName string The name of the property to write..
value float The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Single using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, float)

Source: Utf8JsonWriter.WriteProperties.Float.cs

Writes the property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, float value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write..
value float The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Single using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, float)

Source: Utf8JsonWriter.WriteProperties.Float.cs

Writes the property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, float value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write
value float The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Single using the default StandardFormat (that is, 'G'). The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(JsonEncodedText, long)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the pre-encoded property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, long value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write.
value long The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int64 using the default StandardFormat (that is, 'G'), for example: 32767.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, long)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, long value)

Parameters

Name Type Description
propertyName string The name of the property to write.
value long The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int64 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, long)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, long value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write.
value long The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int64 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, long)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, long value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write.
value long The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int64 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(JsonEncodedText, int)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the pre-encoded property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, int value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write.
value int The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int32 using the default StandardFormat (that is, 'G'), for example: 32767.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, int)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, int value)

Parameters

Name Type Description
propertyName string The name of the property to write.
value int The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int32 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, int)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, int value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write.
value int The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int32 using the default StandardFormat (that is, 'G'), for example: 32767.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, int)

Source: Utf8JsonWriter.WriteProperties.SignedNumber.cs

Writes the property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, int value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write.
value int The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the Int32 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(JsonEncodedText, ulong)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the pre-encoded property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, ulong value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write.
value ulong The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt64 using the default StandardFormat (that is, 'G'), for example: 32767.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, ulong)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, ulong value)

Parameters

Name Type Description
propertyName string The name of the property to write.
value ulong The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt64 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, ulong)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, ulong value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write.
value ulong The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt64 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, ulong)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, ulong value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write.
value ulong The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt64 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(JsonEncodedText, uint)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the pre-encoded property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(JsonEncodedText propertyName, uint value)

Parameters

Name Type Description
propertyName JsonEncodedText The JSON-encoded name of the property to write.
value uint The value to write.

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt32 using the default StandardFormat (that is, 'G'), for example: 32767.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(string, uint)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(string propertyName, uint value)

Parameters

Name Type Description
propertyName string The name of the property to write.
value uint The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
ArgumentNullException The propertyName parameter is null.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt32 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<char>, uint)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<char> propertyName, uint value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The name of the property to write.
value uint The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt32 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

WriteNumber(ReadOnlySpan<byte>, uint)

Source: Utf8JsonWriter.WriteProperties.UnsignedNumber.cs

Writes the property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.

public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, uint value)

Parameters

Name Type Description
utf8PropertyName ReadOnlySpan<byte> The UTF-8 encoded name of the property to write.
value uint The value to write.

Exceptions

Exception Description
ArgumentException Thrown when the specified property name is too large.
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

Remarks

Writes the UInt32 using the default StandardFormat (that is, 'G'), for example: 32767. The property name is escaped before writing.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue