IMutableJsonDocument.TryReplacePropertyFromDocument Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IMutableJsonDocument.cs
TryReplacePropertyFromDocument(int, ReadOnlySpan<byte>, IJsonDocument, int)
Replaces an existing property value with element rows from a source document.
public abstract bool TryReplacePropertyFromDocument(int objectIndex, ReadOnlySpan<byte> propertyName, IJsonDocument sourceDocument, int sourceIndex)
Parameters
| Name | Type | Description |
|---|---|---|
objectIndex |
int |
The start index of the object. |
propertyName |
ReadOnlySpan<byte> |
The UTF-8 property name to find. |
sourceDocument |
IJsonDocument |
The source document containing the element. |
sourceIndex |
int |
The index of the element in the source document. |
Returns
true if the property was found and replaced; otherwise, false.
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