C# Class kOS.Safe.Persistence.GlobalPath

Represents the location of a directory or a file inside a kOS. It contains a volumeId and a VolumePath.
Inheritance: VolumePath
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Свойство Type Description
EMPTY GlobalPath

Méthodes publiques

Méthode Description
ChangeExtension ( string newExtension ) : GlobalPath
ChangeName ( string newName ) : GlobalPath
Combine ( ) : GlobalPath
Equals ( object other ) : bool
FromString ( string pathString ) : GlobalPath

Creates a GlobalPath from string.

FromStringAndBase ( string pathString, GlobalPath basePath ) : GlobalPath

Create a GlobalPath from a base path and a relative path.

FromVolumePath ( VolumePath volumePath, int volumeId ) : GlobalPath
FromVolumePath ( VolumePath volumePath, object volumeId ) : GlobalPath
GetHashCode ( ) : int
GetParent ( ) : GlobalPath
HasVolumeId ( string pathString ) : bool
IsParent ( GlobalPath path ) : bool
RootPath ( ) : GlobalPath
ToString ( ) : string

Méthodes protégées

Méthode Description
GlobalPath ( object volumeId ) : System

Private Methods

Méthode Description
GlobalPath ( object volumeId, IEnumerable segments ) : System
GlobalPath ( object volumeId, VolumePath path ) : System
ValidateVolumeId ( object volumeId ) : object

Method Details

ChangeExtension() public méthode

public ChangeExtension ( string newExtension ) : GlobalPath
newExtension string
Résultat GlobalPath

ChangeName() public méthode

public ChangeName ( string newName ) : GlobalPath
newName string
Résultat GlobalPath

Combine() public méthode

public Combine ( ) : GlobalPath
Résultat GlobalPath

Equals() public méthode

public Equals ( object other ) : bool
other object
Résultat bool

FromString() public static méthode

Creates a GlobalPath from string.
public static FromString ( string pathString ) : GlobalPath
pathString string Path string.
Résultat GlobalPath

FromStringAndBase() public static méthode

Create a GlobalPath from a base path and a relative path.
public static FromStringAndBase ( string pathString, GlobalPath basePath ) : GlobalPath
pathString string Path string relative to basePath.
basePath GlobalPath Base path.
Résultat GlobalPath

FromVolumePath() public static méthode

public static FromVolumePath ( VolumePath volumePath, int volumeId ) : GlobalPath
volumePath VolumePath
volumeId int
Résultat GlobalPath

FromVolumePath() public static méthode

public static FromVolumePath ( VolumePath volumePath, object volumeId ) : GlobalPath
volumePath VolumePath
volumeId object
Résultat GlobalPath

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetParent() public méthode

public GetParent ( ) : GlobalPath
Résultat GlobalPath

GlobalPath() protected méthode

protected GlobalPath ( object volumeId ) : System
volumeId object
Résultat System

HasVolumeId() public static méthode

public static HasVolumeId ( string pathString ) : bool
pathString string
Résultat bool

IsParent() public méthode

public IsParent ( GlobalPath path ) : bool
path GlobalPath
Résultat bool

RootPath() public méthode

public RootPath ( ) : GlobalPath
Résultat GlobalPath

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

EMPTY public_oe static_oe property

public static GlobalPath,kOS.Safe.Persistence EMPTY
Résultat GlobalPath