共用方式為


BamlLocalizationDictionary.Contains(BamlLocalizableResourceKey) 方法

定義

判斷 BamlLocalizationDictionary 物件是否包含具有指定索引鍵的資源。

public:
 bool Contains(System::Windows::Markup::Localizer::BamlLocalizableResourceKey ^ key);
public bool Contains (System.Windows.Markup.Localizer.BamlLocalizableResourceKey key);
member this.Contains : System.Windows.Markup.Localizer.BamlLocalizableResourceKey -> bool
Public Function Contains (key As BamlLocalizableResourceKey) As Boolean

參數

key
BamlLocalizableResourceKey

要尋找的資源索引鍵。

傳回

Boolean

如果 BamlLocalizationDictionary 物件包含具有指定索引鍵的資源則為 true,否則為 false

例外狀況

索引鍵為 null

適用於