ObjectListField Klasa
Definicja
Przestroga
The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.
Przedstawia pole ObjectList kontrolki ASP.net Mobile.Represents a field of an ObjectList ASP.NET mobile control. Klasa ta nie może być dziedziczona.This class cannot be inherited. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public ref class ObjectListField sealed : System::Web::UI::IStateManager
[System.Web.UI.MobileControls.PersistName("Field")]
public sealed class ObjectListField : System.Web.UI.IStateManager
[System.Web.UI.MobileControls.PersistName("Field")]
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public sealed class ObjectListField : System.Web.UI.IStateManager
[<System.Web.UI.MobileControls.PersistName("Field")>]
type ObjectListField = class
interface IStateManager
[<System.Web.UI.MobileControls.PersistName("Field")>]
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type ObjectListField = class
interface IStateManager
Public NotInheritable Class ObjectListField
Implements IStateManager
- Dziedziczenie
-
ObjectListField
- Atrybuty
- Implementuje
Przykłady
Pełny przykład można znaleźć w temacie ObjectList Omówienie.For a complete example, see the ObjectList overview.
Uwagi
Pole jest typu ObjectListField .A field is of type ObjectListField. Jeśli chcesz wyświetlić wiele pól, możesz określić wiele pól dla każdego elementu na liście obiektów.When you want to display multiple fields, you can specify multiple fields for each item in an object list. Aby utworzyć pole w deklaracji obiektu ObjectList , należy zadeklarować ObjectListField jako <Field>
element.To create a field within the declaration of an ObjectList, you declare an ObjectListField as a <Field>
element. Każde pole jest skojarzone z nazwą właściwości.Each field is associated with a property name. Gdy element listy jest powiązany z obiektem danych, każde pole jest powiązane z odpowiednią właściwością obiektu.When a list item is bound to a data object, each field is bound to the corresponding property of the object.
ObjectListZawiera trzy sposoby definiowania pola:The ObjectList provides three ways to define a field:
Deklaratywnie, za pomocą
<Field>
elementów podrzędnych na liście obiektówDeclaratively, by using<Field>
child elements within the object listProgramowo, przez konstruowanie ObjectListField obiektów i dodawanie ich do kolekcji elementów członkowskich pola kontrolkiProgrammatically, by constructing ObjectListField objects and adding them to the Fields member collection of the control
Automatycznie przez ustawienie AutoGenerateFields właściwości na
true
.Automatically, by setting the AutoGenerateFields property totrue
.
Konstruktory
ObjectListField() |
Tworzy nowe wystąpienie klasy ObjectListField.Creates a new instance of the ObjectListField class. Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
Właściwości
DataField |
Pobiera lub ustawia nazwę właściwości, z której mają zostać powiązane dane.Gets or sets the name of the property from which to bind data. Wartość musi być ustawiona, aby zapewnić powiązanie danych.The value must be set to ensure data binding. Wartością domyślną jest ciąg pusty ("").The default value is an empty string (""). Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
DataFormatString |
Pobiera lub ustawia ciąg formatowania, który ma być używany podczas formatowania wartości powiązanej z danymi.Gets or sets the formatting string to use when formatting a data-bound value. Wartością domyślną jest ciąg pusty ("").The default is an empty string (""). Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
Name |
Pobiera lub ustawia nazwę określonego obiektu.Gets or sets the name of the specified object. Wartością domyślną jest ciąg pusty ("").The default value is an empty string (""). Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
Title |
Pobiera lub ustawia tytuł określonego pola.Gets or sets the title of the specified field. Wartość domyślna jest pusta |
Visible |
Pobiera lub ustawia wartość wskazującą, czy określona kontrolka jest renderowana.Gets or sets a value indicating whether the specified control is rendered. Wartość domyślna to |
Metody
DataBindItem(Int32, ObjectListItem) |
Wiąże pole określonego elementu z odpowiednimi danymi.Binds the field of the specified item to its corresponding data. Wywoływana wewnętrznie przez ASP.NET.Called internally by ASP.NET. Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Jawne implementacje interfejsu
IStateManager.IsTrackingViewState |
Aby uzyskać opis tego elementu członkowskiego, zobacz IsTrackingViewState .For a description of this member, see IsTrackingViewState. Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
IStateManager.LoadViewState(Object) |
Aby uzyskać opis tego elementu członkowskiego, zobacz LoadViewState(Object) .For a description of this member, see LoadViewState(Object). Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
IStateManager.SaveViewState() |
Aby uzyskać opis tego elementu członkowskiego, zobacz SaveViewState() .For a description of this member, see SaveViewState(). Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
IStateManager.TrackViewState() |
Aby uzyskać opis tego elementu członkowskiego, zobacz TrackViewState() .For a description of this member, see TrackViewState(). Ten interfejs API jest nieaktualny.This API is obsolete. Informacje o sposobach tworzenia aplikacji mobilnych ASP.NET można znaleźć w temacie Mobile Apps & sitess with ASP.NET.For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |