C# 클래스 BlueCollar.Dashboard.StaticFile

Provides access to embedded static files.
파일 보기 프로젝트 열기: ChadBurggraf/blue-collar 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Create StaticFile
GetContents byte[]
GetHash string
StaticFile System

공개 메소드들

메소드 설명
GetContentType ( string extension ) : string

Gets the content-type to use for files with the given extension. Expects the leading "." to be included with the extension.

GetContentsAsString ( string name ) : string

Loads the contents of an embedded static file and converts it to a string.

비공개 메소드들

메소드 설명
Create ( string urlRoot, string path ) : StaticFile
GetContents ( string name ) : byte[]

Loads the contents of an embedded static file into a buffer and returns it.

GetHash ( string name ) : string
StaticFile ( ) : System

Prevents a default instance of the StaticFile class from being created.

메소드 상세

GetContentType() 공개 정적인 메소드

Gets the content-type to use for files with the given extension. Expects the leading "." to be included with the extension.
public static GetContentType ( string extension ) : string
extension string The extension to get the content-type for.
리턴 string

GetContentsAsString() 공개 정적인 메소드

Loads the contents of an embedded static file and converts it to a string.
public static GetContentsAsString ( string name ) : string
name string The name of the file to load.
리턴 string