<PackageReference Include="Azure.Core" Version="1.47.3" />

MutableJsonElement

A mutable representation of a JSON element.

An enumerable and enumerator for the contents of a mutable JSON array.

An enumerable and enumerator for the properties of a JSON object.

public JsonValueKind? ValueKind { get; }

Gets the type of the current JSON value.

Gets an enumerator to enumerate the values in the JSON array represented by this MutableJsonElement.

Gets an enumerator to enumerate the properties in the JSON object represented by this JsonElement.

public int GetArrayLength()

public bool GetBoolean()

Gets the value of the element as a bool.

public byte GetByte()

public decimal GetDecimal()

public double GetDouble()

Gets the current JSON number as a Double.

public Guid GetGuid()

public short GetInt16()

public int GetInt32()

Gets the current JSON number as a Int32.

public long GetInt64()

Gets the current JSON number as a Int64.

public MutableJsonElement GetProperty(string name)

Gets the MutableJsonElement for the value of the property with the specified name.

Gets the MutableJsonElement for the value of the property with the specified name.

public sbyte GetSByte()

public float GetSingle()

Gets the current JSON number as a Single.

public string GetString()

Gets the value of the element as a string.

public ushort GetUInt16()

public uint GetUInt32()

public ulong GetUInt64()

public void RemoveProperty(string name)

Remove the property with the specified name from the current MutableJsonElement.

public void Set(double value)

Sets the value of this element to the passed-in value.

public void Set(int value)

Sets the value of this element to the passed-in value.

public void Set(long value)

Sets the value of this element to the passed-in value.

public void Set(float value)

Sets the value of this element to the passed-in value.

public void Set(string value)

Sets the value of this element to the passed-in value.

public void Set(bool value)

Sets the value of this element to the passed-in value.

public void Set(byte value)

Sets the value of this element to the passed-in value.

public void Set(sbyte value)

Sets the value of this element to the passed-in value.

public void Set(short value)

Sets the value of this element to the passed-in value.

public void Set(ushort value)

Sets the value of this element to the passed-in value.

public void Set(uint value)

Sets the value of this element to the passed-in value.

public void Set(ulong value)

Sets the value of this element to the passed-in value.

public void Set(decimal value)

Sets the value of this element to the passed-in value.

public void Set(Guid value)

Sets the value of this element to the passed-in value.

public void Set(DateTime value)

Sets the value of this element to the passed-in value.

public void Set(DateTimeOffset value)

Sets the value of this element to the passed-in value.

public void Set(JsonElement value)

Sets the value of this element to the passed-in value.

public void SetNull()

public MutableJsonElement SetProperty(string name, double value)

public MutableJsonElement SetProperty(string name, int value)

public MutableJsonElement SetProperty(string name, long value)

public MutableJsonElement SetProperty(string name, float value)

public MutableJsonElement SetProperty(string name, string value)

public MutableJsonElement SetProperty(string name, bool value)

public MutableJsonElement SetProperty(string name, byte value)

public MutableJsonElement SetProperty(string name, sbyte value)

public MutableJsonElement SetProperty(string name, short value)

public MutableJsonElement SetProperty(string name, ushort value)

public MutableJsonElement SetProperty(string name, uint value)

public MutableJsonElement SetProperty(string name, ulong value)

public MutableJsonElement SetProperty(string name, decimal value)

public MutableJsonElement SetProperty(string name, Guid value)

public MutableJsonElement SetProperty(string name, DateTime value)

public MutableJsonElement SetProperty(string name, DateTimeOffset value)

public MutableJsonElement SetProperty(string name, JsonElement value)

public MutableJsonElement SetPropertyNull(string name)

public bool TryGetByte(out byte value)

public bool TryGetDateTime(out DateTime value)

public bool TryGetDateTimeOffset(out DateTimeOffset value)

public bool TryGetDecimal(out decimal value)

public bool TryGetDouble(out double value)

Attempts to represent the current JSON number as a Double.

public bool TryGetGuid(out Guid value)

public bool TryGetInt16(out short value)

public bool TryGetInt32(out int value)

Attempts to represent the current JSON number as a Int32.

public bool TryGetInt64(out long value)

Attempts to represent the current JSON number as a Int64.

public bool TryGetProperty(string name, out MutableJsonElement value)

Looks for a property named propertyName in the current object, returning a value that indicates whether or not such a property exists. When the property exists, its value is assigned to the value argument.

public bool TryGetProperty(ReadOnlySpan<char> name, out MutableJsonElement value)

Looks for a property named propertyName in the current object, returning a value that indicates whether or not such a property exists. When the property exists, its value is assigned to the value argument.

public bool TryGetSByte(out sbyte value)

public bool TryGetSingle(out float value)

Attempts to represent the current JSON number as a Single.

public bool TryGetUInt16(out ushort value)

public bool TryGetUInt32(out uint value)

public bool TryGetUInt64(out ulong value)