C# Class Rebel.Cms.Web.FileExtensions

Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
GetFileExtension ( this file ) : string

Returns the file extension

GetFileNameForDisplay ( this file ) : string

Returns a nicely formatted file name: without extension and hyphens replaced by spaces for display

GetFileNameWithoutExtension ( this file ) : string

Returns the file name without extension

GetFilePathForDisplay ( this file ) : string
GetFilePathWithoutExtension ( this file ) : string
GetMimeType ( this file ) : string
IsImage ( this file ) : bool

Private Methods

Méthode Description
ToFileNameForDisplay ( this fileName ) : string

Method Details

GetFileExtension() public static méthode

Returns the file extension
public static GetFileExtension ( this file ) : string
file this
Résultat string

GetFileNameForDisplay() public static méthode

Returns a nicely formatted file name: without extension and hyphens replaced by spaces for display
public static GetFileNameForDisplay ( this file ) : string
file this
Résultat string

GetFileNameWithoutExtension() public static méthode

Returns the file name without extension
public static GetFileNameWithoutExtension ( this file ) : string
file this
Résultat string

GetFilePathForDisplay() public static méthode

public static GetFilePathForDisplay ( this file ) : string
file this
Résultat string

GetFilePathWithoutExtension() public static méthode

public static GetFilePathWithoutExtension ( this file ) : string
file this
Résultat string

GetMimeType() public static méthode

public static GetMimeType ( this file ) : string
file this
Résultat string

IsImage() public static méthode

public static IsImage ( this file ) : bool
file this
Résultat bool