StringUtilsSplitTagString Method |
Split a tag string into its constituent name/value pairs.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static NameValueCollection SplitTagString(
string tags,
bool defaultToTagName
)
Public Shared Function SplitTagString (
tags As String,
defaultToTagName As Boolean
) As NameValueCollection
Parameters
- tags
- Type: SystemString
The tag string to split. - defaultToTagName
- Type: SystemBoolean
If specified, any tag having a name but no value specified will use
the name as the value for that tag.
Return Value
Type:
NameValueCollectionThe name/value collection which may be empty but is guaranteed to be non-null.
Remarks
A tag string takes the form name1=val1;name2=val2;... The name/value pairs
are delimited by semi-colons and each name/value is separated by an equals sign.
All leading and trailing whitespace are trimmed for both name and value.
See Also