Codeunit 2502 Extension License Impl in 24
- App
- System Application
- Namespace
- System.Apps
Versions171819202122232425262728latest
Source in 24
src/System Application/App/Extension Management/src/ExtensionLicenseImpl.Codeunit.al31 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.Apps;
codeunit 2502 "Extension License Impl"
{
Access = Internal;
InherentEntitlements = X;
InherentPermissions = X;
SingleInstance = false;
procedure LicenseCount(ProductId: Text; SkuId: Text): Integer
begin
exit(GetIsvLicenseCount(ProductId, SkuId, ''));
end;
procedure GetIsvLicenseCount(ProductId: Text; SkuId: Text; IsvPrefix: Text): Integer
var
DotNetExtensionLicenseInformationProvider: DotNet ExtensionLicenseInformationProvider;
begin
if (ProductId = '') or (SkuId = '') then
exit(-1);
exit(DotNetExtensionLicenseInformationProvider.ALLicenseCount(ProductId, SkuId, IsvPrefix));
end;
}
Procedures, 2
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| LicenseCount | (Text, Text) | Integer | public | - |
| GetIsvLicenseCount | (Text, Text, Text) | Integer | public | - |