語言

ImageField.GetValue(Control, String, PropertyDescriptor) 方法

定義

從指定控制項取得指定欄位的值。

protected:
 virtual System::Object ^ GetValue(System::Web::UI::Control ^ controlContainer, System::String ^ fieldName, System::ComponentModel::PropertyDescriptor ^ % cachedDescriptor);
protected virtual object GetValue(System.Web.UI.Control controlContainer, string fieldName, ref System.ComponentModel.PropertyDescriptor cachedDescriptor);
abstract member GetValue : System.Web.UI.Control * string * PropertyDescriptor -> obj
override this.GetValue : System.Web.UI.Control * string * PropertyDescriptor -> obj
Protected Overridable Function GetValue (controlContainer As Control, fieldName As String, ByRef cachedDescriptor As PropertyDescriptor) As Object

參數

controlContainer
Control

那 Control 個包含欄位值。

fieldName
String

取值的欄位名稱。

cachedDescriptor
PropertyDescriptor

一個 PropertyDescriptor,由參考傳遞,代表該場的性質。

傳回

指定欄位的值。

例外狀況

參數 controlContainer 為 null。

-或-

與容器控制相關的資料項目為 null。

-或-

無法找到參數指定的 fieldName 欄位。

備註

此 GetValue 方法是一種輔助方法,由 ImageField 物件用來決定指定欄位的值。

給繼承者的注意事項

在擴充 ImageField 物件時,你可以覆寫此方法,提供自訂例程來決定欄位的值。

適用於

另請參閱