Represents the qualifier portion of a PackageUrl.
Name | Description | |
---|---|---|
PUrlQualifier(string qualifier) |
Initializes a new instance of the PUrlQualifier struct. |
Name | Description | |
---|---|---|
Count |
Gets the number of keys in the qualifier. |
|
IsEmpty |
Gets a value indicating whether the qualifier is empty. |
|
Item |
Name | Description | |
---|---|---|
ContainsKey(string key) | ||
Equals(object obj) | ||
GetEnumerator | ||
GetHashCode | ||
HasValue(string key, System.ReadOnlySpan<char> value, System.StringComparison comparisonType) | ||
Normalize |
Returns a normalized version of this PUrlQualifier. |
|
ToString | ||
TryGetValue(string key, System.String& value) |
This is essentially a URL query string with some additional rules:
Keys must not be duplicated. A duplicate key will generate a System.FormatException when Normalize is called.
Keys must have values. A value may be empty, but a string of the format key1&key2=value is not value. Missing values are silently converted to empty strings by Normalize.
Keys must be in alphabetical order. This is corrected by Normalize.