C# 클래스 Castle.MonoRail.Framework.DataBindAttribute

상속: System.Attribute, IParameterBinder
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
Bind ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : object

Implementation of IParameterBinder.Bind and it is used to read the data available and construct the parameter type accordingly.

CalculateParamPoints ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : int

Implementation of IParameterBinder.CalculateParamPoints and it is used to give the method a weight when overloads are available.

DataBindAttribute ( string prefix ) : System

Creates a DataBindAttribute with an associated prefix. The prefix must be present in the form data and is used to avoid name clashes.

보호된 메소드들

메소드 설명
BindInstanceErrors ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void

Binds the instance errors.

ConfigureValidator ( SmartDispatcherController controller, IDataBinder binder ) : void

Configures the validator.

CreateBinder ( ) : IDataBinder

Creates the binder.

PopulateValidatorErrorSummary ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void

Populates the validator error summary.

메소드 상세

Bind() 공개 메소드

Implementation of IParameterBinder.Bind and it is used to read the data available and construct the parameter type accordingly.
public Bind ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : object
controller SmartDispatcherController The controller instance
parameterInfo System.Reflection.ParameterInfo The parameter info
리턴 object

BindInstanceErrors() 보호된 메소드

Binds the instance errors.
protected BindInstanceErrors ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
instance object The instance.
리턴 void

CalculateParamPoints() 공개 메소드

Implementation of IParameterBinder.CalculateParamPoints and it is used to give the method a weight when overloads are available.
public CalculateParamPoints ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : int
controller SmartDispatcherController The controller instance
parameterInfo System.Reflection.ParameterInfo The parameter info
리턴 int

ConfigureValidator() 보호된 메소드

Configures the validator.
protected ConfigureValidator ( SmartDispatcherController controller, IDataBinder binder ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
리턴 void

CreateBinder() 보호된 메소드

Creates the binder.
protected CreateBinder ( ) : IDataBinder
리턴 IDataBinder

DataBindAttribute() 공개 메소드

Creates a DataBindAttribute with an associated prefix. The prefix must be present in the form data and is used to avoid name clashes.
public DataBindAttribute ( string prefix ) : System
prefix string
리턴 System

PopulateValidatorErrorSummary() 보호된 메소드

Populates the validator error summary.
protected PopulateValidatorErrorSummary ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
instance object The instance.
리턴 void