Sdílet prostřednictvím


PagesSection.StyleSheetTheme Vlastnost

Definice

Získá nebo nastaví název motivu šablony stylů ASP.NET.

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

Hodnota vlastnosti

String

Název motivu šablony stylů ASP.NET

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít StyleSheetTheme vlastnost.

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

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

' Set the StyleSheetTheme property to
' "MyCustomStyleSheetTheme".
pagesSection.StyleSheetTheme = "MyCustomStyleSheetTheme"

Platí pro

Viz také