CoreGetBooleanEncodeSetting(String) Method

取得加密布林設定值

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Core (in eBizprise.Framework.Core.dll) Version: 25.0.3.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
C#
public static bool GetBooleanEncodeSetting(
	string settingName
)

Parameters

settingName  String
設定名稱

Return Value

Boolean
bool

Remarks

讀取設定檔指定設定值並轉換為布林值
註:y、yes、true、t、1皆視為true
註:預設值為false

Example

C#
bool isSqlLog = Core.GetBooleanEncodeSetting("SqlLog");

Revision History

DateVersionDescription
2020/02/191.0.0.1初版
2020/02/241.0.0.2增加指定設定檔功能
2020/03/271.0.1.0增加支援預設值
2025/05/272.2.3.0修正設定檔非預設時異常
2025/09/1925.0.0.0彙整2025年度初版

See Also