Version

ParseNameValuePairs Method

Parses specified name-value pair. Examples of name-value pairs that this method parses are:
            State = New York, City = New York
            State = "New York", City = "New York"
            State=New York,City=New York
            A\/B = C\/D (column name is A/B and value is C/D.)
            A = 10 miles\/hour, B = "20 miles/hour" (Withing double quotes only double quotes and backward slash have to be escaped.)
            P1 = 10\, 20, P2 = "10, 20"
            
Returns an array of NameValuePair objects. Note: Names and values will be unescaped and also stripped of surrounding quotes.
Syntax
'Declaration
 
Public Shared Function ParseNameValuePairs( _
   ByVal pairs As String, _
   ByRef error As String _
) As RefParser.NameValuePair()
public static RefParser.NameValuePair[] ParseNameValuePairs( 
   string pairs,
   out string error
)

Parameters

pairs
A string containing the name-value pair.
error
A string that will be populated with an error message, should one arise.

Return Value

An array of RefParser.NameValuePair objects.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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