ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的标识从此集合中检索一个项。
public virtual bool TryGetValue (string identity, bool ignoreCase, out T item);
abstract member TryGetValue : string * bool * -> bool
override this.TryGetValue : string * bool * -> bool
Public Overridable Function TryGetValue (identity As String, ignoreCase As Boolean, ByRef item As T) As Boolean
参数
- identity
- String
要搜索的项的标识。
- ignoreCase
- Boolean
如果执行不区分大小写的搜索,则为 true;否则为 false。
- item
- T
在此方法返回时,此输出参数会包含集合中的一个项。 如果不存在匹配的项,此输出参数将包含 null。
返回
如果存在与搜索条件匹配的项,则为 true;否则为 false。