Skip to content

DefaultValueJsonDocument.TryGetNamedPropertyValue Method

Definition

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

Overloads

Method Description
TryGetNamedPropertyValue(int, ReadOnlySpan<char>, JsonElement.Mutable)
TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, JsonElement.Mutable)
TryGetNamedPropertyValue(int, ReadOnlySpan<char>, JsonElement)
TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, JsonElement)
TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, TElement)
TryGetNamedPropertyValue(int, ReadOnlySpan<char>, TElement)
TryGetNamedPropertyValue(int, ReadOnlySpan<char>, IJsonDocument?, int)
TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, IJsonDocument?, int)

TryGetNamedPropertyValue(int, ReadOnlySpan<char>, JsonElement.Mutable)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue(int index, ReadOnlySpan<char> propertyName, out JsonElement.Mutable value)

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<char>
value JsonElement.Mutable

Returns

bool

Implements

IMutableJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, JsonElement.Mutable)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue(int index, ReadOnlySpan<byte> propertyName, out JsonElement.Mutable value)

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<byte>
value JsonElement.Mutable

Returns

bool

Implements

IMutableJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<char>, JsonElement)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue(int index, ReadOnlySpan<char> propertyName, out JsonElement value)

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<char>
value JsonElement

Returns

bool

Implements

IJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, JsonElement)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue(int index, ReadOnlySpan<byte> propertyName, out JsonElement value)

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<byte>
value JsonElement

Returns

bool

Implements

IJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, TElement)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue<TElement>(int index, ReadOnlySpan<byte> propertyName, out TElement value)
    where TElement : struct, IJsonElement<TElement>

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<byte>
value TElement

Returns

bool

Implements

IJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<char>, TElement)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue<TElement>(int index, ReadOnlySpan<char> propertyName, out TElement value)
    where TElement : struct, IJsonElement<TElement>

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<char>
value TElement

Returns

bool

Implements

IJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<char>, IJsonDocument?, int)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue(int index, ReadOnlySpan<char> propertyName, out IJsonDocument? elementParent, out int elementIndex)

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<char>
elementParent IJsonDocument?
elementIndex int

Returns

bool

Implements

IJsonDocument.TryGetNamedPropertyValue

Applies To

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

TryGetNamedPropertyValue(int, ReadOnlySpan<byte>, IJsonDocument?, int)

Source: DefaultValueJsonDocument.cs

public bool TryGetNamedPropertyValue(int index, ReadOnlySpan<byte> propertyName, out IJsonDocument? elementParent, out int elementIndex)

Parameters

Name Type Description
index int
propertyName ReadOnlySpan<byte>
elementParent IJsonDocument?
elementIndex int

Returns

bool

Implements

IJsonDocument.TryGetNamedPropertyValue

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