ImageField.Initialize(Boolean, Control) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes the ImageField object.
public:
override bool Initialize(bool enableSorting, System::Web::UI::Control ^ control);
public override bool Initialize (bool enableSorting, System.Web.UI.Control control);
override this.Initialize : bool * System.Web.UI.Control -> bool
Public Overrides Function Initialize (enableSorting As Boolean, control As Control) As Boolean
Parameters
- enableSorting
- Boolean
true
if sorting is supported; otherwise, false
.
- control
- Control
The data control that contains the ImageField.
Returns
Always returns true
.
Remarks
The Initialize method is called by the data control with which the ImageField object is associated to perform basic object initialization for instances of the field, before the field is ever added to a field collection. Data controls such as DetailsView and GridView call the Initialize method in their CreateChildControls
methods before other methods such as CreateRow
are called to create specific rows with data.
Call this method when you are writing a custom data-bound control that uses DataControlFieldCell objects to perform basic initialization for an ImageField object. Implement this method if your ImageField-derived type requires any object initialization before it populates DataControlFieldCell objects with data or controls in the InitializeCell method.
Applies to
See also
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про