XhtmlControlAdapter.ConditionalRenderClosingSpanElement(XhtmlMobileTextWriter) 方法

定义

满足某些条件时呈现 </span> 结束元素。Renders a closing </span> element if certain conditions are met. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 virtual void ConditionalRenderClosingSpanElement(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer);
protected virtual void ConditionalRenderClosingSpanElement (System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer);
abstract member ConditionalRenderClosingSpanElement : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter -> unit
override this.ConditionalRenderClosingSpanElement : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter -> unit
Protected Overridable Sub ConditionalRenderClosingSpanElement (writer As XhtmlMobileTextWriter)

参数

writer
XhtmlMobileTextWriter

用于在客户端浏览器上呈现服务器控件内容的 XhtmlMobileTextWriter 对象。The XhtmlMobileTextWriter object used to render the server control content on the client's browser.

注解

如果有一个 open <span> 元素,则在 ConditionalRenderClosingSpanElement 满足以下条件时,该方法将呈现一个结束 </span> 元素并取消当前的级联样式表类名称:If there is an open <span> element, the ConditionalRenderClosingSpanElement method renders a closing </span> element and cancels the current cascading style sheet class name if the following conditions are met:

  • Device 需要禁止显示级联样式表样式。The Device does not require suppression of cascading style sheet styles.

  • CssLocation属性表示物理文件。The CssLocation property represents a physical file.

此方法主要由 .NET Framework 在内部使用。This method is primarily used by the .NET Framework internally.

适用于

另请参阅