Codeunit 4032 Client Type Mgt. Impl. in 26
- App
- System Application
- Namespace
- System.Environment
Versions171819202122232425262728latest
Source in 26
src/System Application/App/Client Type Management/src/ClientTypeMgtImpl.Codeunit.al35 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.Environment;
codeunit 4032 "Client Type Mgt. Impl."
{
Access = Internal;
SingleInstance = true;
InherentEntitlements = X;
InherentPermissions = X;
procedure GetCurrentClientType() CurrClientType: ClientType
begin
CurrClientType := CurrentClientType();
OnAfterGetCurrentClientType(CurrClientType);
end;
/// <summary>
/// An event that indicates that subscribers should set the client type that should be returned when the GetCurrentClientType is called.
/// </summary>
/// <remarks>
/// Subscribe to this event from tests if you need to verify a different flow.
/// This feature is for testing and is subject to a different SLA than production features.
/// Do not use this event in a production environment. This should be subscribed to only in tests.
/// </remarks>
[InternalEvent(false)]
local procedure OnAfterGetCurrentClientType(var CurrClientType: ClientType)
begin
end;
}
Procedures, 1
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| GetCurrentClientType | () | ClientType | public | - |
Events, 1
| Kind | Name | Parameters | Obsolete |
|---|---|---|---|
| Internal event | OnAfterGetCurrentClientType | (var ClientType) | - |