C# 클래스 NContrib.MimeHelper

파일 보기 프로젝트 열기: veracross/ncontrib

공개 프로퍼티들

프로퍼티 타입 설명
DefaultMimeType string
MimeSampleSize int
UrlmonOverrides string>.Dictionary

공개 메소드들

메소드 설명
GetMimeFromBytes ( string path ) : string

Use MIME magic to find the mime of the file at this path

GetMimeFromBytes ( this data ) : string

Use MIME magic to find the MIME type of this data block. This should be the first 256 bytes of a file

GetMimeFromFileName ( string filename ) : string
GetMimeFromFileName ( this fileInfo ) : string

비공개 메소드들

메소드 설명
FindMimeFromData ( uint pBC, [ pwzUrl, [ pBuffer, uint cbSize, [ pwzMimeProposed, uint dwMimeFlags, uint &ppwzMimeOut, uint dwReserverd ) : uint
MimeHelper ( ) : System

메소드 상세

GetMimeFromBytes() 공개 정적인 메소드

Use MIME magic to find the mime of the file at this path
public static GetMimeFromBytes ( string path ) : string
path string
리턴 string

GetMimeFromBytes() 공개 정적인 메소드

Use MIME magic to find the MIME type of this data block. This should be the first 256 bytes of a file
public static GetMimeFromBytes ( this data ) : string
data this
리턴 string

GetMimeFromFileName() 공개 정적인 메소드

public static GetMimeFromFileName ( string filename ) : string
filename string
리턴 string

GetMimeFromFileName() 공개 정적인 메소드

public static GetMimeFromFileName ( this fileInfo ) : string
fileInfo this
리턴 string

프로퍼티 상세

DefaultMimeType 공개적으로 정적으로 프로퍼티

public static string DefaultMimeType
리턴 string

MimeSampleSize 공개적으로 정적으로 프로퍼티

public static int MimeSampleSize
리턴 int

UrlmonOverrides 공개적으로 정적으로 프로퍼티

public static Dictionary UrlmonOverrides
리턴 string>.Dictionary