共用方式為


XmlConfigHelper.IsPrefixUsedInAppSettings(String) 方法

定義

取得值,指出 appSetting 機碼是否存在於指定的 keyPrefix。

public:
 abstract bool IsPrefixUsedInAppSettings(System::String ^ keyPrefix);
public:
 abstract bool IsPrefixUsedInAppSettings(Platform::String ^ keyPrefix);
 abstract bool IsPrefixUsedInAppSettings(std::wstring const & keyPrefix);
public abstract bool IsPrefixUsedInAppSettings (string keyPrefix);
abstract member IsPrefixUsedInAppSettings : string -> bool
Public MustOverride Function IsPrefixUsedInAppSettings (keyPrefix As String) As Boolean

參數

keyPrefix
String

要檢查的前置詞字串。

傳回

true 是表示 如果 appSetting 已經存在,且索引鍵開頭為 keyPrefix;否則為 false。

適用於