OpenApiDocument.Load(MemoryStream, String, OpenApiReaderSettings) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads the stream input and parses it into an Open API document.
public static Microsoft.OpenApi.Reader.ReadResult Load(System.IO.MemoryStream stream, string? format = default, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = default);
static member Load : System.IO.MemoryStream * string * Microsoft.OpenApi.Reader.OpenApiReaderSettings -> Microsoft.OpenApi.Reader.ReadResult
Public Shared Function Load (stream As MemoryStream, Optional format As String = Nothing, Optional settings As OpenApiReaderSettings = Nothing) As ReadResult
Parameters
- stream
- MemoryStream
Stream containing OpenAPI description to parse.
- format
- String
The OpenAPI format to use during parsing.
- settings
- OpenApiReaderSettings
The OpenApi reader settings.