Share via


ParseOptions Constructor (String, Boolean, DatabaseCompatibilityLevel)

Initializes a new instance of the ParseOptions with the specified batch separator, quoted identifier setting, and database compatibility level.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Parser
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Sub New ( _
    batchSeparator As String, _
    isQuotedIdentifierSet As Boolean, _
    compatibilityLevel As DatabaseCompatibilityLevel _
)
'Usage
Dim batchSeparator As String
Dim isQuotedIdentifierSet As Boolean
Dim compatibilityLevel As DatabaseCompatibilityLevel

Dim instance As New ParseOptions(batchSeparator, _
    isQuotedIdentifierSet, compatibilityLevel)
public ParseOptions(
    string batchSeparator,
    bool isQuotedIdentifierSet,
    DatabaseCompatibilityLevel compatibilityLevel
)
public:
ParseOptions(
    String^ batchSeparator, 
    bool isQuotedIdentifierSet, 
    DatabaseCompatibilityLevel compatibilityLevel
)
new : 
        batchSeparator:string * 
        isQuotedIdentifierSet:bool * 
        compatibilityLevel:DatabaseCompatibilityLevel -> ParseOptions
public function ParseOptions(
    batchSeparator : String, 
    isQuotedIdentifierSet : boolean, 
    compatibilityLevel : DatabaseCompatibilityLevel
)

Parameters

  • batchSeparator
    Type: System.String
    The string used to separate a single script into multiple batches.
  • isQuotedIdentifierSet
    Type: System.Boolean
    true to treat quoted strings as identifiers; otherwise false.

Exceptions

Exception Condition
ArgumentNullException

batchSeparator is nulla null reference (Nothing in Visual Basic) or an empty string.