Skip to content

LicenseResolver

ClassAssetInventoryAssetInventory.Editor
public static class LicenseResolver

Resolves recorded selections without inferring legal entitlement or modifying catalog records.

public static string DisplayName(AssetInfo info)

Returns the package's recorded license name, or a selection-required or unknown label when no name is recorded.

Parameters

Name Type
info AssetInventory.AssetInfo

Returns

System.String

public static string DisplayName(PackageLicense license)

Returns the selection's license name, or a selection-required or unknown label based on its stored alternatives.

Parameters

Name Type
license AssetInventory.PackageLicense

Returns

System.String

Resolve(AssetInfo, ProjectLicenseSettings)

Section titled “Resolve(AssetInfo, ProjectLicenseSettings)”
public static LicenseResolution Resolve(AssetInfo info, ProjectLicenseSettings project = null)

Builds a detached effective selection with resolution and review state, applying a valid project choice when supplied.

Parameters

Name Type
info AssetInventory.AssetInfo
project AssetInventory.ProjectLicenseSettings

Returns

AssetInventory.LicenseResolution