PUrl Class

Represents a PackageUrl, as defined by https://github.com/package-url/purl-spec.

Inheritance Hierarchy

Syntax

public sealed class PUrl : IEquatable<T>

Constructors

Name Description
PUrl(string packageType, string packageName, string packageVersion, string packageGroupName, string qualifier, int? packageId)

Properties

Name Description
CaseSensitive

Gets a valud indicating whether the PackageName and PackageGroupName are treated as case-sensitive when comparing PUrls.

GroupAndName

Gets the package group and name joined by a / character.

PackageGroupName

Gets the package group, or null if not applicable.

PackageId

Gets the internal database ID for the package if available.

PackageName

Gets the package name.

PackageType

Gets the package type.

PackageVersion

Gets the package version.

Qualifier

Gets the package qualifier string, or null if not applicable.

Methods

Name Description
Equals(object obj)
GetHashCode
Parse(string s)
ToString
TryParse(string s, PUrl& purl)