C# Класс Decision.Common.Extentions.SyndicationFeedExtensions

SyndicationFeed extension methods.
Показать файл Открыть проект

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

Метод Описание
AddNamespace ( this feed, string namespacePrefix, string xmlNamespace ) : void

Adds a namespace to the specified feed.

AddYahooMediaNamespace ( this feed ) : void

Adds the yahoo media namespace to the specified feed.

GetIcon ( this feed ) : string

Gets the icon URL for the feed.

SetIcon ( this feed, string iconUrl ) : void

Sets the icon URL for the feed.

SetThumbnail ( this item, string url, int width, int height ) : void

Sets the Yahoo Media thumbnail for the feed entry.

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

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

Adds a namespace to the specified feed.
public static AddNamespace ( this feed, string namespacePrefix, string xmlNamespace ) : void
feed this The syndication feed.
namespacePrefix string The namespace prefix.
xmlNamespace string The XML namespace.
Результат void

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

Adds the yahoo media namespace to the specified feed.
public static AddYahooMediaNamespace ( this feed ) : void
feed this The syndication feed.
Результат void

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

Gets the icon URL for the feed.
public static GetIcon ( this feed ) : string
feed this The syndication feed.
Результат string

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

Sets the icon URL for the feed.
public static SetIcon ( this feed, string iconUrl ) : void
feed this The syndication feed.
iconUrl string The icon URL.
Результат void

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

Sets the Yahoo Media thumbnail for the feed entry.
public static SetThumbnail ( this item, string url, int width, int height ) : void
item this The feed entry.
url string The thumbnail URL.
width int The optional width of the thumbnail image.
height int The optional height of the thumbnail image.
Результат void