IMutableJsonDocument.TryGetNamedPropertyValueIndex Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| TryGetNamedPropertyValueIndex(ref MetadataDb, int, int, ReadOnlySpan<byte>, ref int) | Gets the named property value from a specific MetadataDb. |
| TryGetNamedPropertyValueIndex(int, ReadOnlySpan<char>, ref int) | Gets the named property value from a specific MetadataDb. |
| TryGetNamedPropertyValueIndex(int, ReadOnlySpan<byte>, ref int) | Gets the named property value from a specific MetadataDb. |
TryGetNamedPropertyValueIndex(ref MetadataDb, int, int, ReadOnlySpan<byte>, ref int)
Source: IMutableJsonDocument.cs
Gets the named property value from a specific MetadataDb.
public abstract bool TryGetNamedPropertyValueIndex(ref MetadataDb parsedData, int startIndex, int endIndex, ReadOnlySpan<byte> propertyName, ref int valueIndex)
Parameters
| Name | Type | Description |
|---|---|---|
parsedData |
ref MetadataDb |
The parsed data. This is used in place of the document's own MetadataDb. |
startIndex |
int |
The index of the first property name. |
endIndex |
int |
The index of the last property value. |
propertyName |
ReadOnlySpan<byte> |
The unescaped property name to look up. |
valueIndex |
ref int |
The index of the value corresponding to the given property name. |
Returns
true if the property with the given name is found.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
TryGetNamedPropertyValueIndex(int, ReadOnlySpan<char>, ref int)
Source: IMutableJsonDocument.cs
Gets the named property value from a specific MetadataDb.
public abstract bool TryGetNamedPropertyValueIndex(int index, ReadOnlySpan<char> propertyName, ref int valueIndex)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
propertyName |
ReadOnlySpan<char> |
The unescaped property name to look up. |
valueIndex |
ref int |
The index of the value corresponding to the given property name. |
Returns
true if the property with the given name is found.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
TryGetNamedPropertyValueIndex(int, ReadOnlySpan<byte>, ref int)
Source: IMutableJsonDocument.cs
Gets the named property value from a specific MetadataDb.
public abstract bool TryGetNamedPropertyValueIndex(int index, ReadOnlySpan<byte> propertyName, ref int valueIndex)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
propertyName |
ReadOnlySpan<byte> |
The name of the property as a UTF-8 byte span. |
valueIndex |
ref int |
The index of the value corresponding to the given property name. |
Returns
true if the property with the given name is found.
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