DataControlField.ToString 方法

定義

傳回字串,表示這個 DataControlField 物件。Returns a string that represents this DataControlField object.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

傳回

String

表示這個 DataControlField 的字串。A string that represents this DataControlField.

備註

如果已設定屬性,這個方法會實作為傳回屬性的值 HeaderTextThis method is implemented to return the value of the HeaderText property, if the property is set. 否則,此方法只會傳回代表資料控制欄位類型的字串 (例如 "BoundField" ) 。Otherwise, this method simply returns a string that represents the type of the data control field (for example, "BoundField").

適用於

另請參閱