共用方式為


PagesSection.Theme 屬性

定義

取得或設定 ASP.NET 頁面主題的名稱。

public:
 property System::String ^ Theme { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("theme", DefaultValue="")]
public string Theme { get; set; }
[<System.Configuration.ConfigurationProperty("theme", DefaultValue="")>]
member this.Theme : string with get, set
Public Property Theme As String

屬性值

ASP.NET 頁面主題的名稱。

屬性

範例

下列程式碼範例示範如何使用 Theme 屬性。

// Get the current Theme property value.
Console.WriteLine(
    "Current Theme value: '{0}'",
    pagesSection.Theme);

// Set the Theme property to "MyCustomTheme".
pagesSection.Theme = "MyCustomTheme";
' Get the current Theme property value.
Console.WriteLine( _
    "Current Theme value: '{0}'", pagesSection.Theme)

' Set the Theme property to "MyCustomTheme".
pagesSection.Theme = "MyCustomTheme"

適用於

另請參閱