C# Class SenseNet.ContentRepository.Storage.RepositoryPath

This class handles the path and its methods.
Afficher le fichier Open project: maxpavlov/FlexNet

Méthodes publiques

Свойство Type Description
CONTENTNAMINGSECTIONKEY string

Private Properties

Свойство Type Description
GetInvalidPathException System.Exception
GetParentPathSafe string
IsPathExists bool
PathExists bool

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetInvalidPathException ( PathResult result, string path ) : Exception
GetParentPathSafe ( string path ) : string
IsPathExists ( string path ) : bool
PathExists ( string path ) : bool

Method Details

CheckValidName() public static méthode

public static CheckValidName ( string name ) : void
name string
Résultat void

CheckValidPath() public static méthode

public static CheckValidPath ( string path ) : void
path string
Résultat void

Combine() public static méthode

public static Combine ( ) : string
Résultat string

Combine() public static méthode

Concatenates the specified pathes.
public static Combine ( string path1, string path2 ) : string
path1 string The path 1.
path2 string The path 2.
Résultat string

GetDepth() public static méthode

public static GetDepth ( string path ) : int
path string
Résultat int

GetFileName() public static méthode

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.
Résultat string

GetFileNameSafe() public static méthode

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.
Résultat string

GetParentPath() public static méthode

Gets the parent path from a path.
public static GetParentPath ( string path ) : string
path string The path.
Résultat string

IsInTree() public static méthode

public static IsInTree ( string targetPath, string rootPath ) : bool
targetPath string
rootPath string
Résultat bool

IsInvalidNameChar() public static méthode

public static IsInvalidNameChar ( char c ) : bool
c char
Résultat bool

IsInvalidPathChar() public static méthode

public static IsInvalidPathChar ( char c ) : bool
c char
Résultat bool

IsValidName() public static méthode

public static IsValidName ( string name ) : PathResult
name string
Résultat PathResult

IsValidPath() public static méthode

Determines whether the specified path is valid.
public static IsValidPath ( string path ) : PathResult
path string The path.
Résultat PathResult

NameContainsInvalidChar() public static méthode

public static NameContainsInvalidChar ( string s ) : bool
s string
Résultat bool

PathContainsInvalidChar() public static méthode

public static PathContainsInvalidChar ( string s ) : bool
s string
Résultat bool

Property Details

CONTENTNAMINGSECTIONKEY public_oe static_oe property

public static string CONTENTNAMINGSECTIONKEY
Résultat string