Share via


DictionaryModelBinder<TKey,TValue> 클래스

정의

IModelBinder 바인딩 사전 값에 대한 구현입니다.

generic <typename TKey, typename TValue>
public ref class DictionaryModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::Binders::CollectionModelBinder<System::Collections::Generic::KeyValuePair<TKey, TValue>>
public class DictionaryModelBinder<TKey,TValue> : Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<System.Collections.Generic.KeyValuePair<TKey,TValue>>
type DictionaryModelBinder<'Key, 'Value> = class
    inherit CollectionModelBinder<KeyValuePair<'Key, 'Value>>
Public Class DictionaryModelBinder(Of TKey, TValue)
Inherits CollectionModelBinder(Of KeyValuePair(Of TKey, TValue))

형식 매개 변수

TKey

사전의 키 유형입니다.

TValue

사전에 있는 값의 형식입니다.

상속
DictionaryModelBinder<TKey,TValue>

생성자

DictionaryModelBinder<TKey,TValue>(IModelBinder, IModelBinder)
사용되지 않음.

이 생성자는 사용되지 않으며 이후 버전에서 제거됩니다. 권장되는 대안은 을 사용하는 오버로드입니다 ILoggerFactory.

DictionaryModelBinder<TKey,TValue>를 만듭니다.

DictionaryModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory)

DictionaryModelBinder<TKey,TValue>를 만듭니다.

DictionaryModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory, Boolean)

DictionaryModelBinder<TKey,TValue>를 만듭니다.

DictionaryModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory, Boolean, MvcOptions)

DictionaryModelBinder<TKey,TValue>를 만듭니다.

속성

ElementBinder

IModelBinder 바인딩 컬렉션 요소에 대한 인스턴스를 가져옵니다.

(다음에서 상속됨 CollectionModelBinder<TElement>)
Logger

ILogger 이 바인더에서 로깅하는 데 사용되는 입니다.

(다음에서 상속됨 CollectionModelBinder<TElement>)

메서드

AddErrorIfBindingRequired(ModelBindingContext)

if 에 ModelStateIsBindingRequiredModelError 추가합니다.

(다음에서 상속됨 CollectionModelBinder<TElement>)
BindModelAsync(ModelBindingContext)

모델을 바인딩하려고 시도합니다.

CanCreateInstance(Type)

ICollectionModelBinder 구현이 에 할당 가능한 targetTypeObject 만들 수 있는지 여부를 나타냅니다.

ConvertToCollectionType(Type, IEnumerable<KeyValuePair<TKey,TValue>>)

IModelBinder 바인딩 사전 값에 대한 구현입니다.

ConvertToCollectionType(Type, IEnumerable<TElement>)

의 멤버를 Object 포함하는 에 targetType 할당 가능한 를 collection가져옵니다.

(다음에서 상속됨 CollectionModelBinder<TElement>)
CopyToModel(Object, IEnumerable<TElement>)

의 값을 지정된 targetsourceCollection 추가합니다.

(다음에서 상속됨 CollectionModelBinder<TElement>)
CreateEmptyCollection(Type)

Object 할당 가능한 을 만듭니다 targetType.

CreateInstance(Type)

targetType의 인스턴스를 만듭니다.

(다음에서 상속됨 CollectionModelBinder<TElement>)

적용 대상