C# Класс Adf.Web.Binding.WebBinder

Represents a binder which binds a System.Web.UI.Control with an object or a list of objects. Provides methods to bind a System.Web.UI.Control with an object, an array of objects, a list of objects etc.
Наследование: IPlatformBinder
Показать файл Открыть проект

Открытые методы

Метод Описание
Bind ( object control, IEnumerable bindableObjects, bool isPostback ) : void

Binds the specified list of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using its list of control binders.

Bind ( object control, object bindableObject, bool isPostback ) : void

Binds the specified business object to the specified System.Web.UI.Control or its child System.Web.UI.Control.

Persist ( object bindableObject, object control ) : void

Persists the data of the specified System.Web.UI.Control to the specified business object.

WebBinder ( ) : System.Collections

Initializes an instance of the Adf.Web.Binding.WebBinder class.

Приватные методы

Метод Описание
AddBinder ( IControlBinder controlBinder ) : void

Adds the specified control binder to its collection of control binders.

AddPersister ( IControlPersister controlPersister ) : void

Adds the specified control persister to the collection of control persisters.

BindToArray ( Control c, object bindableObjects, Dictionary controlBinders ) : void

Binds the specified array of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using the specified list of control binders.

BindToList ( Control c, IEnumerable bindableObjects, Dictionary controlBinders ) : void

Binds the specified list of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using the specified list of control binders.

BindToObject ( Control c, object bindableObject, Dictionary controlBinders, object p ) : void

Binds the specified business object to the specified System.Web.UI.Control or its child System.Web.UI.Control using the specified list of control binders.

GetValue ( object bindableObject, PropertyInfo pi ) : object

Gets the value of the specified property of the specified business object.

Описание методов

Bind() публичный Метод

Binds the specified list of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using its list of control binders.
public Bind ( object control, IEnumerable bindableObjects, bool isPostback ) : void
control object The or the child /// of which is to bind to.
bindableObjects IEnumerable The list of business objects to bind.
isPostback bool The value indicating whether this is a repeatation.
Результат void

Bind() публичный Метод

Binds the specified business object to the specified System.Web.UI.Control or its child System.Web.UI.Control.
public Bind ( object control, object bindableObject, bool isPostback ) : void
control object The or the child /// of which is to bind to.
bindableObject object The business object to bind.
isPostback bool The value indicating whether this is a repeatation.
Результат void

Persist() публичный Метод

Persists the data of the specified System.Web.UI.Control to the specified business object.
public Persist ( object bindableObject, object control ) : void
bindableObject object The business object where to persist.
control object The , the data of which is to persist.
Результат void

WebBinder() публичный Метод

Initializes an instance of the Adf.Web.Binding.WebBinder class.
public WebBinder ( ) : System.Collections
Результат System.Collections