Version

LoadEbnf(Stream,Encoding) Method

Attempts to create a Grammar instance represented by the specified EBNF file stream.
Syntax
'Declaration
 
Public Overloads Shared Function LoadEbnf( _
   ByVal stream As Stream, _
   Optional ByVal encoding As Encoding _
) As EbnfLoadResult
public static EbnfLoadResult LoadEbnf( 
   Stream stream,
   Encoding encoding
)

Parameters

stream
A stream containing the EBNF (Extended Backus-Naur Form) file.
encoding
The character encoding used in the file. UTF8 will be used if it is not specified.

Return Value

An EbnfLoadResult instance which describes the result of the parse operation and contains a reference to the created Grammar instance if there were no errors.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when the specified stream is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also