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

要查找的资源键。

返回

如果 BamlLocalizationDictionary 对象包含具有指定键的资源,则为 true;否则为 false

例外

项为 null

适用于