C# Класс Goedel.Mesh.ConfigRegistry

Convenience class for reading and writing windows registry values to an XML file.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Dictionary ConfigRegistryEntry>.SortedDictionary

Открытые методы

Метод Описание
ConfigRegistry ( string Name ) : System

Construct a new instance.

ConfigRegistry ( string Name, string FileName ) : System

Construct a new instance.

Get ( string Key ) : ConfigRegistryEntry

Lookup the key value and return the corresponding ConfigRegistryEntry.

GetBINARY ( string Key ) : byte[]

Lookup the key value and return the corresponding value.

GetDWORD ( string Key ) : uint

Lookup the key value and return the corresponding value.

GetSZ ( string Key ) : string

Lookup the key value and return the corresponding value.

Read ( XmlReader Reader ) : void

Read the registry from an XML stream.

Read ( string FileName ) : void

Read the registry from an XML file.

Set ( string Key, byte Value ) : bool

Set a key for a BINARY value, creating a new key if necessary.

Set ( string Key, string Value ) : bool

Set a key for a SZ value, creating a new key if necessary.

Set ( string Key, string Type, string Value ) : bool

Set the value of the specified key, creating a new value if necessary from a string.

Set ( string Key, uint Value ) : bool

Set a key for a DWORD value, creating a new key if necessary.

Write ( XmlWriter Writer ) : void

Write the registry to an XML stream.

Write ( string FileName ) : void

Write the registry to an XML file.

Описание методов

ConfigRegistry() публичный Метод

Construct a new instance.
public ConfigRegistry ( string Name ) : System
Name string The topmost element of the registry.
Результат System

ConfigRegistry() публичный Метод

Construct a new instance.
public ConfigRegistry ( string Name, string FileName ) : System
Name string The topmost element of the registry.
FileName string The file to read
Результат System

Get() публичный Метод

Lookup the key value and return the corresponding ConfigRegistryEntry.
public Get ( string Key ) : ConfigRegistryEntry
Key string The key to lookup.
Результат ConfigRegistryEntry

GetBINARY() публичный Метод

Lookup the key value and return the corresponding value.
public GetBINARY ( string Key ) : byte[]
Key string The key to lookup.
Результат byte[]

GetDWORD() публичный Метод

Lookup the key value and return the corresponding value.
public GetDWORD ( string Key ) : uint
Key string The key to lookup.
Результат uint

GetSZ() публичный Метод

Lookup the key value and return the corresponding value.
public GetSZ ( string Key ) : string
Key string The key to lookup.
Результат string

Read() публичный Метод

Read the registry from an XML stream.
public Read ( XmlReader Reader ) : void
Reader XmlReader The stream to read
Результат void

Read() публичный Метод

Read the registry from an XML file.
public Read ( string FileName ) : void
FileName string The file to read
Результат void

Set() публичный Метод

Set a key for a BINARY value, creating a new key if necessary.
public Set ( string Key, byte Value ) : bool
Key string The key to set.
Value byte The value to set it to.
Результат bool

Set() публичный Метод

Set a key for a SZ value, creating a new key if necessary.
public Set ( string Key, string Value ) : bool
Key string The key to set.
Value string The value to set it to.
Результат bool

Set() публичный Метод

Set the value of the specified key, creating a new value if necessary from a string.
public Set ( string Key, string Type, string Value ) : bool
Key string The key to set.
Type string The type of data to create.
Value string The data value as a string.
Результат bool

Set() публичный Метод

Set a key for a DWORD value, creating a new key if necessary.
public Set ( string Key, uint Value ) : bool
Key string The key to set.
Value uint The value to set it to.
Результат bool

Write() публичный Метод

Write the registry to an XML stream.
public Write ( XmlWriter Writer ) : void
Writer System.Xml.XmlWriter The stream to write
Результат void

Write() публичный Метод

Write the registry to an XML file.
public Write ( string FileName ) : void
FileName string The file to write.
Результат void

Описание свойств

Dictionary публичное свойство

Sorted dictionary mapping registry keys to entries. The original insertion order is preserved unless changed by the calling code (e.g. to sort). Updated elements will remain in their original position.
public SortedDictionary Dictionary
Результат ConfigRegistryEntry>.SortedDictionary