C# 클래스 Net.XpFramework.Runner.Paths

파일 보기 프로젝트 열기: xp-framework/xp-runners

공개 메소드들

메소드 설명
Binary ( ) : string

Return binary file of currently executing process

Compose ( ) : string

Composes a path name of two or more components - varargs

Compose ( Environment special ) : string

Composes a path name of a special folder and a string component

DirName ( string filename ) : string

Returns the directory name of a given file name

Find ( IEnumerable bases, string file ) : string

Find a file inside multiple base paths. See Locate().

Locate ( IEnumerable bases, string files, bool expect ) : IEnumerable

Locate a given file inside multiple base paths. Similar to what is done when looking up program names in $ENV{PATH}.

Resolve ( string path ) : string

Resolve a path. If the path is actually a shell link (.lnk file), this link's target path is used.

ResolveShortcut ( string filename ) : string

Resolves a shell shortcut's target path

Translate ( string root, string paths ) : IEnumerable

Translate a list of paths

비공개 메소드들

메소드 설명
SHGetFolderPath ( IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, StringBuilder lpszPath ) : int

메소드 상세

Binary() 공개 정적인 메소드

Return binary file of currently executing process
public static Binary ( ) : string
리턴 string

Compose() 공개 정적인 메소드

Composes a path name of two or more components - varargs
public static Compose ( ) : string
리턴 string

Compose() 공개 정적인 메소드

Composes a path name of a special folder and a string component
public static Compose ( Environment special ) : string
special System.Environment Special Folder from Environment.SpecialFolder enum
리턴 string

DirName() 공개 정적인 메소드

Returns the directory name of a given file name
public static DirName ( string filename ) : string
filename string
리턴 string

Find() 공개 정적인 메소드

Find a file inside multiple base paths. See Locate().
public static Find ( IEnumerable bases, string file ) : string
bases IEnumerable
file string
리턴 string

Locate() 공개 정적인 메소드

Locate a given file inside multiple base paths. Similar to what is done when looking up program names in $ENV{PATH}.
public static Locate ( IEnumerable bases, string files, bool expect ) : IEnumerable
bases IEnumerable
files string
expect bool Whether we expect a non-empty list
리턴 IEnumerable

Resolve() 공개 정적인 메소드

Resolve a path. If the path is actually a shell link (.lnk file), this link's target path is used.
public static Resolve ( string path ) : string
path string
리턴 string

ResolveShortcut() 공개 정적인 메소드

Resolves a shell shortcut's target path
public static ResolveShortcut ( string filename ) : string
filename string
리턴 string

Translate() 공개 정적인 메소드

Translate a list of paths
public static Translate ( string root, string paths ) : IEnumerable
root string
paths string
리턴 IEnumerable