PagesSection.Theme Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of an ASP.NET page theme.
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
Property Value
The name of an ASP.NET page theme.
- Attributes
Examples
The following code example shows how to use the Theme property.
// 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"
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.