InedoSDK Reference
Version:

PUrlQualifier Class

Represents the qualifier portion of a PackageUrl.

Inheritance Hierarchy

  • object
    • System.ValueType
      • Inedo.ProGet.PUrlQualifier

Syntax

public sealed class PUrlQualifier : System.ValueType, IReadOnlyDictionary<TKey, TValue>, IEnumerable<T>, System.Collections.IEnumerable, IReadOnlyCollection<T>, IEquatable<T>, IComparable<T>, System.IComparable

Constructors

Name Description
PUrlQualifier(string qualifier)

Initializes a new instance of the PUrlQualifier struct.

Properties

Name Description
Count

Gets the number of keys in the qualifier.

IsEmpty

Gets a value indicating whether the qualifier is empty.

Item

Remarks

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.