C# Класс BlogEngine.Core.BlogSettings

Represents the configured settings for the blog engine.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetInstanceSettings ( Blog blog ) : BlogSettings

Returns the settings for the requested blog instance.

GetThemeWithAdjustments ( string themeOverride ) : string

Takes into account factors such as if there is a theme override of if the theme is a Razor theme and returns the actual theme folder name for the current HTTP request.

IsThemeRazor ( string themeName ) : bool

Determines if themeName is a razor theme.

Save ( ) : void

Saves the settings to disk.

Version ( ) : string

Returns the BlogEngine.NET version information.

The current version is determined by extracting the build version of the BlogEngine.Core assembly.

Приватные методы

Метод Описание
BlogSettings ( ) : System

Prevents a default instance of the BlogSettings class from being created. Initializes a new instance of the BlogSettings class.

GetSettingsTypePropertyDict ( ) : System.Reflection.PropertyInfo>.IDictionary
Load ( ) : void

Initializes the singleton instance of the BlogSettings class.

OnChanged ( ) : void

Occurs when the settings have been changed.

Описание методов

GetInstanceSettings() публичный статический Метод

Returns the settings for the requested blog instance.
public static GetInstanceSettings ( Blog blog ) : BlogSettings
blog Blog
Результат BlogSettings

GetThemeWithAdjustments() публичный Метод

Takes into account factors such as if there is a theme override of if the theme is a Razor theme and returns the actual theme folder name for the current HTTP request.
public GetThemeWithAdjustments ( string themeOverride ) : string
themeOverride string
Результат string

IsThemeRazor() публичный статический Метод

Determines if themeName is a razor theme.
public static IsThemeRazor ( string themeName ) : bool
themeName string
Результат bool

Save() публичный Метод

Saves the settings to disk.
public Save ( ) : void
Результат void

Version() публичный Метод

Returns the BlogEngine.NET version information.
The current version is determined by extracting the build version of the BlogEngine.Core assembly.
public Version ( ) : string
Результат string