INIFile Class

QsInformatica.Utils

INIFile Class

Classe per la gestione dei file di inizializzazione.
Inheritance Hierarchy
SystemObject  QsInformatica.UtilsINIFile

Namespace:  QsInformatica.Utils
Assembly:  QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 22.4.2.0 (22.4.2.0)
Syntax
public class INIFile
Public Class INIFile
public ref class INIFile
type INIFile =  class end

The INIFile type exposes the following members.

Constructors
  NameDescription
Public methodINIFile
Costruttore senza parametri.
Public methodINIFile(String)
Costruttore con argomento per inizializzare il nome file.
Top
Properties
  NameDescription
Public propertyDirty
Indica se la struttura è stata modificata e quindi necessita di essere scritta su file.
Public propertyFileName
Imposta o restituisce il nome del file contenente le impostazioni.
Public propertyLoaded
Indica se il file di impostazione è stato letto e caricato in memoria correttamente.
Public propertySections
Restituisce una collezione di sola lettura contenente tutte le Sezioni presenti nel file.
Top
Methods
  NameDescription
Public methodDeleteKey
Elimina la chiave da una specifica sezione. Se la chiave o la sezione non esiste non viene sollevata alcuna eccezione.
Public methodDeleteSection
Elimina l'intera sezione con tutte le chiavi contenute. Se la sezione non esiste non viene sollevata alcuna eccezione.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRawLines
Gets the raw lines (skip comments)
Public methodGetSectionKeys
Restituisce la collezione delle chiavi presenti attualmente in una sezione.
Public methodGetSectionRawLines
Gets the section lines. The raw text of the section. Skip comments.
Public methodGetString
Restituisce il valore presente nella sezione ed alla chiave specificata. Se una delle due non esiste viene restituito il valore di default.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Carica in memoria la struttura dati contenuta nel file di impostazione.
Public methodRead(String)
Carica in memoria la struttura dati contenuta nel file di impostazioni passato come argomento.
Public methodSetString
Imposta il valore nella sezione ed alla chiave specificata.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryWrite
Scrive su file le impostazioni presenti in memoria senza lanciare eccezioni ma restituendo se è riuscito o meno.
Public methodWrite
Scrive su file le impostazioni presenti in memoria.
Top
See Also