Share via


CsdlJsonReaderFactory Delegate

Definition

A delegate used to retrieve a reader for referenced JSON CSDL schemas. Utf8JsonReader is a ref struct, we can't distiguish which Uri want to parse, which Uri want to skip. So, use an out boolean value to indicate whether to skip parsing the input reference Uri.

public delegate System.Text.Json.Utf8JsonReader CsdlJsonReaderFactory(Uri uri, out bool skip);
type CsdlJsonReaderFactory = delegate of Uri * bool -> Utf8JsonReader
Public Delegate Function CsdlJsonReaderFactory(uri As Uri, ByRef skip As Boolean) As Utf8JsonReader 

Parameters

uri
Uri

The reference Uri.

skip
Boolean

out a boolean value that indicates whether to skip parsing the input uri.

Return Value

The corresponding Utf8JsonReader.

Applies to