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"

适用于

另请参阅