共用方式為


ModelBinderDictionary.ContainsKey(Type) 方法

定義

判斷模型繫結器字典是否包含具有指定之索引鍵的項目。

public bool ContainsKey(Type key);
abstract member ContainsKey : Type -> bool
override this.ContainsKey : Type -> bool
Public Function ContainsKey (key As Type) As Boolean

參數

key
Type

要在 IDictionary<TKey,TValue> 物件中尋找的索引鍵。

傳回

如果模型系結器字典包含具有指定索引鍵的專案,則為 true;否則為 false。

實作

例外狀況

key 為 null。

適用於