C# 클래스 SenseNet.ContentRepository.Storage.RepositoryPath

This class handles the path and its methods.
파일 보기 프로젝트 열기: maxpavlov/FlexNet

공개 프로퍼티들

프로퍼티 타입 설명
CONTENTNAMINGSECTIONKEY string

Private Properties

프로퍼티 타입 설명
GetInvalidPathException System.Exception
GetParentPathSafe string
IsPathExists bool
PathExists bool

공개 메소드들

메소드 설명
CheckValidName ( string name ) : void
CheckValidPath ( string path ) : void
Combine ( ) : string
Combine ( string path1, string path2 ) : string

Concatenates the specified pathes.

GetDepth ( string path ) : int
GetFileName ( string path ) : string

Gets the file name from a valid path, which is located after the last PathSeparator.

GetFileNameSafe ( string path ) : string

Gets the file name from a path, which is located after the last PathSeparator, without checking path validity.

GetParentPath ( string path ) : string

Gets the parent path from a path.

IsInTree ( string targetPath, string rootPath ) : bool
IsInvalidNameChar ( char c ) : bool
IsInvalidPathChar ( char c ) : bool
IsValidName ( string name ) : PathResult
IsValidPath ( string path ) : PathResult

Determines whether the specified path is valid.

NameContainsInvalidChar ( string s ) : bool
PathContainsInvalidChar ( string s ) : bool

비공개 메소드들

메소드 설명
GetInvalidPathException ( PathResult result, string path ) : Exception
GetParentPathSafe ( string path ) : string
IsPathExists ( string path ) : bool
PathExists ( string path ) : bool

메소드 상세

CheckValidName() 공개 정적인 메소드

public static CheckValidName ( string name ) : void
name string
리턴 void

CheckValidPath() 공개 정적인 메소드

public static CheckValidPath ( string path ) : void
path string
리턴 void

Combine() 공개 정적인 메소드

public static Combine ( ) : string
리턴 string

Combine() 공개 정적인 메소드

Concatenates the specified pathes.
public static Combine ( string path1, string path2 ) : string
path1 string The path 1.
path2 string The path 2.
리턴 string

GetDepth() 공개 정적인 메소드

public static GetDepth ( string path ) : int
path string
리턴 int

GetFileName() 공개 정적인 메소드

Gets the file name from a valid path, which is located after the last PathSeparator.
public static GetFileName ( string path ) : string
path string The path.
리턴 string

GetFileNameSafe() 공개 정적인 메소드

Gets the file name from a path, which is located after the last PathSeparator, without checking path validity.
public static GetFileNameSafe ( string path ) : string
path string The path.
리턴 string

GetParentPath() 공개 정적인 메소드

Gets the parent path from a path.
public static GetParentPath ( string path ) : string
path string The path.
리턴 string

IsInTree() 공개 정적인 메소드

public static IsInTree ( string targetPath, string rootPath ) : bool
targetPath string
rootPath string
리턴 bool

IsInvalidNameChar() 공개 정적인 메소드

public static IsInvalidNameChar ( char c ) : bool
c char
리턴 bool

IsInvalidPathChar() 공개 정적인 메소드

public static IsInvalidPathChar ( char c ) : bool
c char
리턴 bool

IsValidName() 공개 정적인 메소드

public static IsValidName ( string name ) : PathResult
name string
리턴 PathResult

IsValidPath() 공개 정적인 메소드

Determines whether the specified path is valid.
public static IsValidPath ( string path ) : PathResult
path string The path.
리턴 PathResult

NameContainsInvalidChar() 공개 정적인 메소드

public static NameContainsInvalidChar ( string s ) : bool
s string
리턴 bool

PathContainsInvalidChar() 공개 정적인 메소드

public static PathContainsInvalidChar ( string s ) : bool
s string
리턴 bool

프로퍼티 상세

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

public static string CONTENTNAMINGSECTIONKEY
리턴 string