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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ClearBlogContent ( int blogId ) : void
Equals ( object obj ) : bool

Returns true if the two instances are equal

GetAlternateHostAlias ( string host ) : string

If the host starts with www., gets the host without the www. If it doesn't start with www., returns the host with www.

GetBlogAliases ( int pageIndex, int pageSize ) : IPagedCollection
GetBlogById ( int blogId ) : BlogInfo

Gets the blog by id.

GetBlogs ( int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection

Returns a IList{T} containing ACTIVE the BlogInfo instances within the specified range.

GetBlogsByHost ( string host, int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection

Gets the active blog count by host.

GetHashCode ( ) : int

Serves as the hash function for the type BlogInfo, suitable for use in hashing functions.

StripPortFromHost ( string host ) : string

Strips the port number from the host name.

StripWwwPrefixFromHost ( string host ) : string

Strips www prefix from host name.

Защищенные методы

Метод Описание
FlagPropertyCheck ( ConfigurationFlags cf ) : bool

Checks to see if the specified ConfigurationFlag matches a flag set for this blog.

FlagSetter ( ConfigurationFlags cf, bool select ) : void

Adds or removes a ConfigurationFlag to the flags set for this blog via bitmask operations.

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

Метод Описание
InitAggregateBlog ( ) : BlogInfo

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

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

public static ClearBlogContent ( int blogId ) : void
blogId int
Результат void

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

Returns true if the two instances are equal
public Equals ( object obj ) : bool
obj object Obj.
Результат bool

FlagPropertyCheck() защищенный Метод

Checks to see if the specified ConfigurationFlag matches a flag set for this blog.
protected FlagPropertyCheck ( ConfigurationFlags cf ) : bool
cf ConfigurationFlags Cf.
Результат bool

FlagSetter() защищенный Метод

Adds or removes a ConfigurationFlag to the flags set for this blog via bitmask operations.
protected FlagSetter ( ConfigurationFlags cf, bool select ) : void
cf ConfigurationFlags Cf.
select bool Select.
Результат void

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

If the host starts with www., gets the host without the www. If it doesn't start with www., returns the host with www.
public static GetAlternateHostAlias ( string host ) : string
host string Host.
Результат string

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

public GetBlogAliases ( int pageIndex, int pageSize ) : IPagedCollection
pageIndex int
pageSize int
Результат IPagedCollection

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

Gets the blog by id.
public static GetBlogById ( int blogId ) : BlogInfo
blogId int Blog id.
Результат BlogInfo

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

Returns a IList{T} containing ACTIVE the BlogInfo instances within the specified range.
public static GetBlogs ( int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection
pageIndex int Page index.
pageSize int Size of the page.
flags ConfigurationFlags
Результат IPagedCollection

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

Gets the active blog count by host.
public static GetBlogsByHost ( string host, int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection
host string The host.
pageIndex int Zero based index of the page to retrieve.
pageSize int Number of records to display on the page.
flags ConfigurationFlags Configuration flags to filter blogs retrieved.
Результат IPagedCollection

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

Serves as the hash function for the type BlogInfo, suitable for use in hashing functions.
public GetHashCode ( ) : int
Результат int

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

Strips the port number from the host name.
public static StripPortFromHost ( string host ) : string
host string Host.
Результат string

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

Strips www prefix from host name.
public static StripWwwPrefixFromHost ( string host ) : string
host string Host.
Результат string