11 references to Options
System.Text.Json (11)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
434CheckSupportedOptions(state.Options, nameof(reader)); 641document = Parse(rented.AsMemory(0, length), state.Options, rented); 666document = ParseUnrented(owned, state.Options, reader.TokenType);
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
163Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues); 180Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (4)
289if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 314if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 471? new Utf8JsonReader(valueSequence, reader.CurrentState.Options) 472: new Utf8JsonReader(valueSpan, reader.CurrentState.Options);
System\Text\Json\ThrowHelper.cs (2)
384message = SR.Format(SR.ArrayDepthTooLarge, json.CurrentState.Options.MaxDepth); 441message = SR.Format(SR.ObjectDepthTooLarge, json.CurrentState.Options.MaxDepth);