BindAttribute 클래스

정의

이 특성은 작업 매개 변수 및 형식에서 모델 수준 메타데이터를 나타내는 데 사용할 수 있습니다.

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

생성자

BindAttribute(String[])

BindAttribute의 새 인스턴스를 만듭니다.

속성

Include

모델 바인딩에 포함할 속성의 이름을 가져옵니다.

Prefix

사용자가 모델 바인딩 중에 일치시킬 특정 접두사를 지정할 수 있습니다.

PropertyFilter

모델 바인딩으로 바인딩해야 하는 모델 속성을 결정할 수 있는 조건자를 가져옵니다.

이 조건자는 모델의 생성자가 바인딩된 경우 바인딩되는 매개 변수를 결정하는 데도 사용됩니다.

명시적 인터페이스 구현

IModelNameProvider.Name

모델 바인딩 중에 사용되는 모델 이름을 나타냅니다.

적용 대상