LicenseResolver
public static class LicenseResolverResolves recorded selections without inferring legal entitlement or modifying catalog records.
Methods
Section titled “Methods”
DisplayName(AssetInfo)
Section titled “DisplayName(AssetInfo)”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
DisplayName(PackageLicense)
Section titled “DisplayName(PackageLicense)”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