Summary
Given a string of semi-colon delimited name=value pairs, this method parses it and creates
a hash table containing the property names as keys and the property values as values.
This method escapes any special characters found in the property values, in case they
are going to be passed to a method (such as that expects the appropriate escaping to have happened
already.
Syntax
[SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "4", Justification = "finalPropertiesTable is not an argument, it's an out variable that is initialized.")]
public static bool GetTableWithEscaping(TaskLoggingHelper log, string parameterName, string syntaxName, IEnumerable<string> propertyNameValues, out Hashtable finalPropertiesTable)
Attributes
Type |
Description |
SuppressMessageAttribute |
|
Parameters
Name |
Type |
Description |
log |
TaskLoggingHelper |
The logger. |
parameterName |
string |
The name of the parameter. |
syntaxName |
string |
The name of the syntax element. |
propertyNameValues |
IEnumerable<string> |
The list of properties. |
finalPropertiesTable |
Hashtable |
The resulting hashtable containing the properties and their values. |
Return Value
Type |
Description |
bool |
true on success, false on failure. |