C# 클래스 Microsoft.CodeAnalysis.Sarif.Writers.MimeType

A class containing utility functions for working with MIME types.
파일 보기 프로젝트 열기: Microsoft/sarif-sdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Binary string
CSharp string
Cpp string
Default string
Directory string
Java string
Sarif string

공개 메소드들

메소드 설명
DetermineFromFileExtension ( Uri fileUri ) : string

Guesses an appropriate MIME type given the extension from a file name.

DetermineFromFileExtension ( string path ) : string

Guesses filePath appropriate MIME type given the extension from a file name.

비공개 메소드들

메소드 설명
HasExtension ( string fileName, string extension ) : bool

메소드 상세

DetermineFromFileExtension() 공개 정적인 메소드

Guesses an appropriate MIME type given the extension from a file name.
public static DetermineFromFileExtension ( Uri fileUri ) : string
fileUri System.Uri
리턴 string

DetermineFromFileExtension() 공개 정적인 메소드

Guesses filePath appropriate MIME type given the extension from a file name.
public static DetermineFromFileExtension ( string path ) : string
path string File path from which MIME type shall be guessed.
리턴 string

프로퍼티 상세

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

The MIME type for binaries.
public static string Binary
리턴 string

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

The MIME type used for CSharp files.
public static string CSharp
리턴 string

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

The MIME type for C and C++ files.
public static string Cpp
리턴 string

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

The MIME type to use when no better MIME type is known.
public static string Default
리턴 string

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

The MIME type for directories.
public static string Directory
리턴 string

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

The MIME type for Java source code files.
public static string Java
리턴 string

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

The MIME type for SARIF files.
public static string Sarif
리턴 string