BindPropertyAttribute 클래스

정의

연결된 속성을 바인딩하는 데 사용할 모델 이름 또는 형식을 IModelBinder 지정할 수 있는 특성입니다.

public ref class BindPropertyAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBinderTypeProviderMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelNameProvider, Microsoft::AspNetCore::Mvc::ModelBinding::IRequestPredicateProvider
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class BindPropertyAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IRequestPredicateProvider
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindPropertyAttribute = class
    inherit Attribute
    interface IModelNameProvider
    interface IBinderTypeProviderMetadata
    interface IBindingSourceMetadata
    interface IRequestPredicateProvider
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindPropertyAttribute = class
    inherit Attribute
    interface IBinderTypeProviderMetadata
    interface IBindingSourceMetadata
    interface IModelNameProvider
    interface IRequestPredicateProvider
Public Class BindPropertyAttribute
Inherits Attribute
Implements IBinderTypeProviderMetadata, IModelNameProvider, IRequestPredicateProvider
상속
BindPropertyAttribute
특성
구현

설명

ModelBinderAttribute와 비슷합니다. 해당 특성과 달리 는 BindPropertyAttribute 속성에만 적용되며 기본적으로 속성이 HTTP GET 요청에 바인딩되어서는 안 됨을 나타내는 구현을 추가 IRequestPredicateProvider 합니다(참조 SupportsGet).

생성자

BindPropertyAttribute()

연결된 속성을 바인딩하는 데 사용할 모델 이름 또는 형식을 IModelBinder 지정할 수 있는 특성입니다.

속성

BinderType

Type 중 하나를 IModelBinder구현하는 입니다.

BindingSource

BindingSource를 가져옵니다.

Name

모델 이름입니다.

SupportsGet

연결된 속성이 HTTP GET 요청에 바인딩되어야 한다는 표시를 가져오거나 설정합니다. 이면 true속성이 모든 요청에 바인딩되어야 합니다. 그렇지 않으면 속성이 HTTP GET 요청에 바인딩되지 않아야 합니다.

명시적 인터페이스 구현

IRequestPredicateProvider.RequestPredicate

연결된 속성을 바인딩하는 데 사용할 모델 이름 또는 형식을 IModelBinder 지정할 수 있는 특성입니다.

적용 대상