StyleSheetLocation 列舉



此 API 現已淘汰。

指定行動控制項或頁面的樣式表位置類型。Specifies the type of location for the style sheet for a mobile control or page. 如需如何開發 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.

public enum class StyleSheetLocation
public enum 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")]
public enum StyleSheetLocation
type StyleSheetLocation = 
Public Enum 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

樣式表會儲存在目前的工作階段 (Session) 狀態中。The style sheet is stored in the current Session state.


System.Web.UI.MobileControls.Adapters.XhtmlAdapters 命名空間中的類別會使用 StyleSheetLocation 列舉,以協助建立 XHTML 標籤。The StyleSheetLocation enumeration is used by classes in the System.Web.UI.MobileControls.Adapters.XhtmlAdapters namespace to facilitate creating XHTML markup.