Class RuntimeEnvironmentProfile
The default IRuntimeEnvironmentProfile implementation.
public sealed record RuntimeEnvironmentProfile : IRuntimeEnvironmentProfile, IEquatable<RuntimeEnvironmentProfile>
- Inheritance
-
RuntimeEnvironmentProfile
- Implements
- Inherited Members
Constructors
RuntimeEnvironmentProfile(bool, int, int, bool)
The default IRuntimeEnvironmentProfile implementation.
public RuntimeEnvironmentProfile(bool Is64Bit, int Lcid, int AnsiCodePage, bool SupportsOptionCompareDatabase)
Parameters
Is64BitboolWhether the environment is 64-bit.
LcidintThe environment LCID;
0for the invariant locale.AnsiCodePageintThe ANSI code page for
Byte()↔String.SupportsOptionCompareDatabaseboolWhether
Option Compare Databaseis supported.
Properties
AnsiCodePage
The ANSI code page for Byte() ↔ String.
public int AnsiCodePage { get; init; }
Property Value
Culture
The CultureInfo for Lcid — drives Option Compare Text,
Like, Format$, and number / date let-coercion to and from String.
public CultureInfo Culture { get; }
Property Value
Default
A 64-bit, current-culture, Windows-1252, no-Option Compare Database profile for
design-time and tests.
public static IRuntimeEnvironmentProfile Default { get; }
Property Value
Is64Bit
Whether the environment is 64-bit.
public bool Is64Bit { get; init; }
Property Value
Lcid
The environment LCID; 0 for the invariant locale.
public int Lcid { get; init; }
Property Value
SupportsOptionCompareDatabase
Whether Option Compare Database is supported.
public bool SupportsOptionCompareDatabase { get; init; }
Property Value
Methods
From(SdkEnvironmentOptions)
Builds a profile from bound appsettings.json options.
public static RuntimeEnvironmentProfile From(SdkEnvironmentOptions options)
Parameters
optionsSdkEnvironmentOptions