Language

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 オブジェクトを拡張するときに、このメソッドをオーバーライドして、フィールドの値を決定するカスタム ルーチンを提供できます。

適用対象

こちらもご覧ください