C# 클래스 vlko.BlogModule.NH.Commands.FileBrowserCommands

상속: IFileBrowserCommands
파일 보기 프로젝트 열기: vlko/vlko

공개 프로퍼티들

프로퍼티 타입 설명
UserDirectoryName string

공개 메소드들

메소드 설명
DeleteFile ( string user, string fileIdent ) : bool

Deletes the file.

GetAllUserFileInfos ( string user ) : IEnumerable

Gets all user files.

GetFileInfo ( string user, string fileIdent ) : FileViewModel

Gets the file info.

SanitizeFileName ( string fileName ) : string

Sanitizes the name of the file.

SaveFile ( string user, string fileIdent, Stream fileStream ) : bool

Saves the file.

비공개 메소드들

메소드 설명
FileBrowserCommands ( IAppInfoService appInfo ) : System

메소드 상세

DeleteFile() 공개 메소드

Deletes the file.
public DeleteFile ( string user, string fileIdent ) : bool
user string The user.
fileIdent string The file ident.
리턴 bool

GetAllUserFileInfos() 공개 메소드

Gets all user files.
public GetAllUserFileInfos ( string user ) : IEnumerable
user string The user.
리턴 IEnumerable

GetFileInfo() 공개 메소드

Gets the file info.
public GetFileInfo ( string user, string fileIdent ) : FileViewModel
user string The user.
fileIdent string The file ident.
리턴 FileViewModel

SanitizeFileName() 공개 정적인 메소드

Sanitizes the name of the file.
public static SanitizeFileName ( string fileName ) : string
fileName string Name of the file.
리턴 string

SaveFile() 공개 메소드

Saves the file.
public SaveFile ( string user, string fileIdent, Stream fileStream ) : bool
user string The user.
fileIdent string The file ident.
fileStream Stream The file stream.
리턴 bool

프로퍼티 상세

UserDirectoryName 공개적으로 프로퍼티

public string UserDirectoryName
리턴 string