CSV.TryParseLine Method

/// Try to parse a line of CSV data. Can only return false if an unterminated text qualifier is encountered. /// /// This function cannot recognize 'sep=' lines because it does not know whether it is parsing the first line /// in the overall CSV stream. ///
Public Shared Function TryParseLine( _ 
ByVal line As String, _ 
ByRef row As String(), _ 
Optional ByVal settings As CSVSettings = null _ 
) As Boolean
This language is not supported or no code example is available.
public static bool TryParseLine( 
string line
out string[] row
CSVSettings settings = null 
)
This language is not supported or no code example is available.
public:  
static bool TryParseLine( 
String^ line
array< String^ >^& row
CSVSettings^ settings 
)
This language is not supported or no code example is available.
public static function TryParseLine( 
line : String
row : String[], 
settings : CSVSettings 
) : boolean;
This language is not supported or no code example is available.

Parameters

line
string

The line of text to parse

row
string[]

The array of fields found in the line

settings
CSVSettings

The CSV settings to use for this parsing operation (Default: CSV)

Return Value

bool

False if there was an unterminated text qualifier in the line

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition