XmlConfigHelper.IsPrefixUsedInAppSettings(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出 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。