CSV.ParseLine Method

/// Parse a line from a CSV file and return an array of fields, or null if it fails ///
Public Shared Function ParseLine( _ 
ByVal line As String, _ 
Optional ByVal settings As CSVSettings = null, _ 
Optional ByVal throwOnFailure As Nullable(Of Boolean) = null _ 
) As String()
This language is not supported or no code example is available.
public static string[] ParseLine( 
string line
CSVSettings settings = null, 
Nullable<bool> throwOnFailure = null 
)
This language is not supported or no code example is available.
public:  
static array< String^ >^ ParseLine( 
String^ line
CSVSettings^ settings
Nullable<bool^> throwOnFailure 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Parameters

line
string

One line of text from a CSV file

settings
CSVSettings

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

throwOnFailure
Nullable<bool>

If this value is true, throws an exception if parsing fails

Return Value

string[]

An array containing all fields in the next row of data, or null if it could not be parsed.

.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