StyleSheetLocation 枚举

定义

警告

此 API 现已过时。

为移动控件或页的样式表指定位置类型。Specifies the type of location for the style sheet for a mobile control or page. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public enum class StyleSheetLocation
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum StyleSheetLocation
type StyleSheetLocation = 
Public Enum StyleSheetLocation
继承
StyleSheetLocation
属性

字段

ApplicationCache 1

样式表存储在应用程序缓存中。The style sheet is stored in the Application Cache.

Internal 4

样式表是当前的源文件(.aspx 或 .ascx)中的一组样式。The style sheet is a set of styles within the current source file (either .aspx or .ascx).

None 5

当前未使用。Not currently used.

NotSet 0

默认值。Default value. 位置尚未确定。The location has not yet been determined.

PhysicalFile 3

样式表是一个外部物理文件,如 MyStylesheet.css。The style sheet is an external physical file, such as MyStylesheet.css.

SessionState 2

样式表存储在当前的会话状态中。The style sheet is stored in the current Session state.

注解

StyleSheetLocation 枚举由 System.Web.UI.MobileControls.Adapters.XhtmlAdapters 命名空间中的类用于创建 XHTML 标记。The StyleSheetLocation enumeration is used by classes in the System.Web.UI.MobileControls.Adapters.XhtmlAdapters namespace to facilitate creating XHTML markup.

适用于

另请参阅