C# Class POLUtils.PathStorage.PathStorage

Class to handle storage/retrieval of Path Settings.
Afficher le fichier Open project: polserver/poltools

Méthodes publiques

Méthode Description
AddPath ( string PathName, string Value ) : bool

Adds a new PathName to the Path Settings.

GetPath ( string PathName ) : string

Get the Path stored for a specific PathName.

GetPathNames ( ) : string[]

Get all Path Social Names From The Path Storage.

IsSet ( string PathName ) : bool

Bool for if a PathName contains any data.

PathStorage ( ) : System

Default Constructor. Initializes the following Paths Storage Names: UOPath MULPath POLPath POLExePath UOConvertExePath ECompileExePath RunECLExePath POLConfigPath POLDataPath POLLogPath POLRealmPath

RemovePath ( string PathName ) : bool

Remove a PathName from the Path Settings.

SetPath ( string PathName, string NewValue ) : bool

Sets the Path stored for a specific PathName.

Private Methods

Méthode Description
InitPathSettings ( ) : void

Method Details

AddPath() public méthode

Adds a new PathName to the Path Settings.
public AddPath ( string PathName, string Value ) : bool
PathName string PathName to add.
Value string Value to add to the PathName.
Résultat bool

GetPath() public méthode

Get the Path stored for a specific PathName.
public GetPath ( string PathName ) : string
PathName string PathName to look up the Path for.
Résultat string

GetPathNames() public méthode

Get all Path Social Names From The Path Storage.
public GetPathNames ( ) : string[]
Résultat string[]

IsSet() public méthode

Bool for if a PathName contains any data.
public IsSet ( string PathName ) : bool
PathName string PathName to check.
Résultat bool

PathStorage() public méthode

Default Constructor. Initializes the following Paths Storage Names: UOPath MULPath POLPath POLExePath UOConvertExePath ECompileExePath RunECLExePath POLConfigPath POLDataPath POLLogPath POLRealmPath
public PathStorage ( ) : System
Résultat System

RemovePath() public méthode

Remove a PathName from the Path Settings.
public RemovePath ( string PathName ) : bool
PathName string PathName to remove.
Résultat bool

SetPath() public méthode

Sets the Path stored for a specific PathName.
public SetPath ( string PathName, string NewValue ) : bool
PathName string PathName to set the Path for.
NewValue string New string value to set the Path for.
Résultat bool