JsonNode.ReplaceWith<T>(T) Methode

Definition

Ersetzt diesen Knoten durch einen neuen Wert.

public:
generic <typename T>
 void ReplaceWith(T value);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")]
public void ReplaceWith<T>(T value);
public void ReplaceWith<T>(T value);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")>]
member this.ReplaceWith : 'T -> unit
member this.ReplaceWith : 'T -> unit
Public Sub ReplaceWith(Of T) (value As T)

Typparameter

T

Der Typ des zu ersetzenden Werts.

Parameter

value
T

Der Wert, der diesen Knoten ersetzt.

Attribute

Gilt für: