JsonNode.ReplaceWith<T>(T) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Ersätter den här noden med ett nytt värde.
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)
Typparametrar
- T
Vilken typ av värde som ska ersättas.
Parametrar
- value
- T
Värdet som ersätter den här noden.
- Attribut