Exists 方法Exists method

如果**字典** 对象中存在指定的键, 则返回True ; 否则, 返回 false。如果不是。Returns True if a specified key exists in the Dictionary object; False if it does not.

语法Syntax

对象存在(key)object.Exists (key)


Exists 方法的语法包含以下部分:The Exists method syntax has these parts:

PartPart 说明Description
objectobject 必需。Required. 始终为 Dictionary 对象的名称。Always the name of a Dictionary object.
keykey 必需。Required. 要在 Dictionary 对象中搜索的 Key 值。Key value being searched for in the Dictionary object.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.