AutoFieldsGenerator 類別

定義

表示自動為資料繫結控制項產生欄位之類別的基底類別,其中這些控制項使用 ASP.NET 動態資料功能。Represents a base class for classes that automatically generate fields for data-bound controls that use ASP.NET Dynamic Data features.

public ref class AutoFieldsGenerator abstract : System::Web::UI::IAutoFieldGenerator, System::Web::UI::IStateManager
public abstract class AutoFieldsGenerator : System.Web.UI.IAutoFieldGenerator, System.Web.UI.IStateManager
type AutoFieldsGenerator = class
    interface IAutoFieldGenerator
    interface IStateManager
Public MustInherit Class AutoFieldsGenerator
Implements IAutoFieldGenerator, IStateManager
繼承
AutoFieldsGenerator
衍生
實作

建構函式

AutoFieldsGenerator()

初始化 AutoFieldsGenerator 類別的新執行個體。Initializes a new instance of the AutoFieldsGenerator class.

屬性

AutoGeneratedFieldProperties

傳回 AutoGeneratedField 物件的屬性清單。Returns a list of the properties of an AutoGeneratedField object.

AutoGenerateEnumFields

取得或設定值,這個值表示是否應該使用此 AutoFieldsGenerator 執行個體來產生列舉欄位。Gets or sets a value that indicates whether enumeration fields should be generated by this AutoFieldsGenerator instance.

IsTrackingViewState

取得值,指出是否正在追蹤檢視狀態變更。Gets a value that indicates whether view state changes are being tracked.

方法

CreateAutoGeneratedFieldFromFieldProperties(AutoGeneratedFieldProperties)

使用指定的欄位屬性集合,建立一個或多個自動產生的欄位。Creates one or more autogenerated fields using the specified collection of field properties.

CreateAutoGeneratedFields(Object, Control)

在衍生類別中實作時,根據目前的資料項目,建立自動產生的欄位。When implemented in a derived class, creates autogenerated fields based on the current data item.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GenerateFields(Control)

根據資料表的中繼資料資訊,建立 DynamicField 物件。Creates DynamicField objects based on metadata information for the table.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
LoadViewState(Object)

載入先前使用 SaveViewState() 方法已儲存的狀態。Loads the state that was saved previously using the SaveViewState() method.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
SaveViewState()

將變更儲存至類別的狀態。Saves the changes to the class's state.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TrackViewState()

指示類別追蹤其檢視狀態的變更。Instructs the class to track changes to its view state.

明確介面實作

IStateManager.IsTrackingViewState

取得值,指出是否正在追蹤檢視狀態變更。Gets a value that indicates whether view state changes are being tracked.

IStateManager.LoadViewState(Object)

載入先前使用 SaveViewState() 方法已儲存的狀態。Loads the state that was saved previously using the SaveViewState() method.

IStateManager.SaveViewState()

將變更儲存至類別的狀態。Saves the changes to a class's state.

IStateManager.TrackViewState()

指示類別追蹤其檢視狀態的變更。Instructs the class to track changes to its view state.

適用於