DataBoundLiteralControl.ITextControl.Text 屬性

定義

取得或設定 DataBoundLiteralControl 物件的文字內容。

property System::String ^ System::Web::UI::ITextControl::Text { System::String ^ get(); void set(System::String ^ value); };
string System.Web.UI.ITextControl.Text { get; set; }
member this.System.Web.UI.ITextControl.Text : string with get, set
 Property Text As String Implements ITextControl.Text

屬性值

String

String,表示 DataBoundLiteralControl 的文字內容。

實作

例外狀況

嘗試設定值。

備註

這個介面的實作 ITextControl 會傳回 屬性的值 Text 。 屬性的值 Text 會保存在檢視狀態中。

物件 DataBoundLiteralControl 會實作 ITextControlset 但不支援 屬性上的 Text 方法。 所有使用此方法的嘗試都會傳 NotSupportedException 回例外狀況。

適用於