BoundField.ExtractValuesFromCell 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定 IDictionary 物件的值填入指定的 TableCell 物件。
public:
override void ExtractValuesFromCell(System::Collections::Specialized::IOrderedDictionary ^ dictionary, System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlRowState rowState, bool includeReadOnly);
public override void ExtractValuesFromCell (System.Collections.Specialized.IOrderedDictionary dictionary, System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlRowState rowState, bool includeReadOnly);
override this.ExtractValuesFromCell : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlRowState * bool -> unit
Public Overrides Sub ExtractValuesFromCell (dictionary As IOrderedDictionary, cell As DataControlFieldCell, rowState As DataControlRowState, includeReadOnly As Boolean)
參數
- dictionary
- IOrderedDictionary
IDictionary,用於儲存指定儲存格的值。
- cell
- DataControlFieldCell
TableCell,包含要擷取的值。
- rowState
- DataControlRowState
其中一個 DataControlRowState 值。
- includeReadOnly
- Boolean
true
表示包含唯讀欄位的值,否則為 false
。
備註
方法 ExtractValuesFromCell 提供為方便的方式,可從 物件中指定的物件中 BoundField 擷取欄位 TableCell 的值。
注意
這個方法主要由控制項開發人員使用。
這個方法不會傳回值。 相反地,域值會透過 System.Collections.IDictionary 針對 參數傳入 dictionary
的物件傳回參考。 呼叫 方法之後,請逐 System.Collections.IDictionary 一查看 物件以存取域值。
注意
TableCell如果物件包含唯讀域值,您必須傳入 true
,參數 includeReadOnly
才能包含這些值。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應