다음을 통해 공유


ModelBinderDictionary.Remove 메서드

정의

오버로드

Remove(KeyValuePair<Type,IModelBinder>)

모델 바인더 사전에서 맨 처음 발견되는 지정된 요소를 제거합니다.

Remove(Type)

모델 바인더 사전에서 지정된 키를 가진 요소를 제거합니다.

Remove(KeyValuePair<Type,IModelBinder>)

모델 바인더 사전에서 맨 처음 발견되는 지정된 요소를 제거합니다.

public bool Remove (System.Collections.Generic.KeyValuePair<Type,System.Web.Mvc.IModelBinder> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<Type, System.Web.Mvc.IModelBinder> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<Type, System.Web.Mvc.IModelBinder> -> bool
Public Function Remove (item As KeyValuePair(Of Type, IModelBinder)) As Boolean

매개 변수

item
KeyValuePair<Type,IModelBinder>

개체에서 제거할 개체입니다 ICollection<T> .

반환

모델 바인더 사전에서 성공적으로 제거되었으면 item true, 그렇지 않으면 false입니다. 이 메서드는 모델 바인더 사전에서 를 찾을 수 없는 경우에도 item false를 반환합니다.

구현

예외

ICollection<T> 개체가 읽기 전용인 경우

적용 대상

Remove(Type)

모델 바인더 사전에서 지정된 키를 가진 요소를 제거합니다.

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

매개 변수

key
Type

제거할 요소의 키입니다.

반환

요소가 성공적으로 제거되면 true이고, 그렇지 않으면 false입니다. 모델 바인더 사전에서 가 없는 경우에도 key 이 메서드는 false를 반환합니다.

구현

예외

IDictionary<TKey,TValue> 개체가 읽기 전용인 경우

key가 null입니다.

적용 대상