C# Класс Subtext.Framework.HostInfo

Represents the system, and its settings, that hosts the blogs within this Subtext installation.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateHost ( string hostUserName, string hostPassword ) : bool

Creates the host in the persistent store.

LoadHost ( bool suppressException ) : HostInfo

Loads the host from the Object Provider. This is provided for those cases when we really need to hit the data strore. Calling this method will also reload the HostInfo.Instance from the data store.

SetHostPassword ( HostInfo host, string newPassword ) : void
UpdateHost ( HostInfo host ) : bool

Updates the host in the persistent store.

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

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

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

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

Creates the host in the persistent store.
public static CreateHost ( string hostUserName, string hostPassword ) : bool
hostUserName string
hostPassword string
Результат bool

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

Loads the host from the Object Provider. This is provided for those cases when we really need to hit the data strore. Calling this method will also reload the HostInfo.Instance from the data store.
public static LoadHost ( bool suppressException ) : HostInfo
suppressException bool If true, won't throw an exception.
Результат HostInfo

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

public static SetHostPassword ( HostInfo host, string newPassword ) : void
host HostInfo
newPassword string
Результат void

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

Updates the host in the persistent store.
public static UpdateHost ( HostInfo host ) : bool
host HostInfo Host.
Результат bool