C# Класс Swensen.Ior.Core.IorContentType

An immutable wrapper around our underlying content type representation which provides specialized processing for various processing like pretty printing and choosing correct file extensions.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MediaType string
MediaTypeCategory IorMediaTypeCategory

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

Метод Описание
GetFileExtension ( IorMediaTypeCategory mtc, string mt, Uri requestUri ) : string
GetMediaTypeCategory ( string mt ) : IorMediaTypeCategory
GetPrettyPrintedContent ( IorMediaTypeCategory mtc, string content ) : string

If contentType is an xml content type, then try to pretty print the rawContent. If that fails or otherwise, just return the rawContent

IorContentType ( ) : System
IorContentType ( string contentType ) : System

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

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

public static GetFileExtension ( IorMediaTypeCategory mtc, string mt, Uri requestUri ) : string
mtc IorMediaTypeCategory
mt string
requestUri System.Uri
Результат string

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

public static GetMediaTypeCategory ( string mt ) : IorMediaTypeCategory
mt string
Результат IorMediaTypeCategory

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

If contentType is an xml content type, then try to pretty print the rawContent. If that fails or otherwise, just return the rawContent
public static GetPrettyPrintedContent ( IorMediaTypeCategory mtc, string content ) : string
mtc IorMediaTypeCategory
content string
Результат string

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

public IorContentType ( ) : System
Результат System

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

public IorContentType ( string contentType ) : System
contentType string
Результат System

Описание свойств

MediaType публичное свойство

public string MediaType
Результат string

MediaTypeCategory публичное свойство

public IorMediaTypeCategory MediaTypeCategory
Результат IorMediaTypeCategory