XhtmlControlAdapter.ConditionalRenderOpeningSpanElement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果符合特定條件,則呈現 <span>
項目的開頭標記。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET。
protected:
virtual void ConditionalRenderOpeningSpanElement(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer);
protected virtual void ConditionalRenderOpeningSpanElement (System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer);
abstract member ConditionalRenderOpeningSpanElement : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter -> unit
override this.ConditionalRenderOpeningSpanElement : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter -> unit
Protected Overridable Sub ConditionalRenderOpeningSpanElement (writer As XhtmlMobileTextWriter)
參數
- writer
- XhtmlMobileTextWriter
XhtmlMobileTextWriter 物件,用來在用戶端的瀏覽器上呈現伺服器控制項內容。
備註
如果符合下列條件,這個方法會寫入開頭 <span>
元素:
Device不需要隱藏級聯樣式表單樣式。
屬性 CssLocation 代表實體檔案。
目前控件的類別屬性值與上一個控件的類別屬性值不同。
這個方法主要是由內部 .NET Framework 使用。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應