TSqlParser.Parse TSqlParser.Parse TSqlParser.Parse Method

Definition

Returns a script fragment by using the provided parameter values.

Overloads

Parse(IList<TSqlParserToken>, IList<ParseError>) Parse(IList<TSqlParserToken>, IList<ParseError>) Parse(IList<TSqlParserToken>, IList<ParseError>)

Returns a script fragment and a list of errors by using the provided tokens.

Parse(TextReader, IList<ParseError>) Parse(TextReader, IList<ParseError>) Parse(TextReader, IList<ParseError>)

Returns a script fragment and a list of errors by using the provided text reader.

Parse(TextReader, IList<ParseError>, Int32, Int32, Int32) Parse(TextReader, IList<ParseError>, Int32, Int32, Int32) Parse(TextReader, IList<ParseError>, Int32, Int32, Int32)

Returns a script fragment and a list of errors by using the provided values.

Parse(IList<TSqlParserToken>, IList<ParseError>) Parse(IList<TSqlParserToken>, IList<ParseError>) Parse(IList<TSqlParserToken>, IList<ParseError>)

Returns a script fragment and a list of errors by using the provided tokens.

public:
 abstract Microsoft::SqlServer::TransactSql::ScriptDom::TSqlFragment ^ Parse(System::Collections::Generic::IList<Microsoft::SqlServer::TransactSql::ScriptDom::TSqlParserToken ^> ^ tokens, [Runtime::InteropServices::Out] System::Collections::Generic::IList<Microsoft::SqlServer::TransactSql::ScriptDom::ParseError ^> ^ % errors);
public abstract Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment Parse (System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.TSqlParserToken> tokens, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> errors);
Public MustOverride Function Parse (tokens As IList(Of TSqlParserToken), ByRef errors As IList(Of ParseError)) As TSqlFragment
Parameters
tokens
IList<TSqlParserToken>

The list of parser tokens.

errors
IList<ParseError>

When this method returns, contains the list of error that occurred during parsing. This parameter is passed uninitialized.

Returns

Parse(TextReader, IList<ParseError>) Parse(TextReader, IList<ParseError>) Parse(TextReader, IList<ParseError>)

Returns a script fragment and a list of errors by using the provided text reader.

public:
 Microsoft::SqlServer::TransactSql::ScriptDom::TSqlFragment ^ Parse(System::IO::TextReader ^ input, [Runtime::InteropServices::Out] System::Collections::Generic::IList<Microsoft::SqlServer::TransactSql::ScriptDom::ParseError ^> ^ % errors);
public Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment Parse (System.IO.TextReader input, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> errors);
Public Function Parse (input As TextReader, ByRef errors As IList(Of ParseError)) As TSqlFragment
Parameters
input
TextReader TextReader TextReader

The script that will be parsed.

errors
IList<ParseError>

When this method returns, contains the list of error that occurred during parsing. This parameter is passed uninitialized.

Returns

Parse(TextReader, IList<ParseError>, Int32, Int32, Int32) Parse(TextReader, IList<ParseError>, Int32, Int32, Int32) Parse(TextReader, IList<ParseError>, Int32, Int32, Int32)

Returns a script fragment and a list of errors by using the provided values.

public:
 Microsoft::SqlServer::TransactSql::ScriptDom::TSqlFragment ^ Parse(System::IO::TextReader ^ input, [Runtime::InteropServices::Out] System::Collections::Generic::IList<Microsoft::SqlServer::TransactSql::ScriptDom::ParseError ^> ^ % errors, int startOffset, int startLine, int startColumn);
public Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment Parse (System.IO.TextReader input, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> errors, int startOffset, int startLine, int startColumn);
Public Function Parse (input As TextReader, ByRef errors As IList(Of ParseError), startOffset As Integer, startLine As Integer, startColumn As Integer) As TSqlFragment
Parameters
input
TextReader TextReader TextReader

The script that will be parsed.

errors
IList<ParseError>

When this method returns, contains the list of error that occurred during parsing. This parameter is passed uninitialized.

startOffset
Int32 Int32 Int32

The offset where the parse starts. This parameter is passed uninitialized.

startLine
Int32 Int32 Int32

The line number where the parse starts. This parameter is passed uninitialized.

startColumn
Int32 Int32 Int32

The column number in the line where the parse starts. This parameter is passed uninitialized.

Returns

Applies to