Aracılığıyla paylaş


PagesSection.Theme Özellik

Tanım

bir ASP.NET sayfası temasının adını alır veya ayarlar.

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

Özellik Değeri

ASP.NET sayfası temasının adı.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin Theme nasıl kullanılacağını gösterir.

// 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"

Şunlara uygulanır

Ayrıca bkz.