C# Класс Revit.SDK.Samples.ModifyIniFile.CS.IniFile

Contains methods to read and write value to specialized key in an ini file
Показать файл Открыть проект

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

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

Initializes a new instance of IniFile to read and write

IniReadInt ( string section, string key, int def ) : int

Retrieves an integer associated with a key in the specified section.

IniWriteString ( string section, string key, string value ) : bool

Copies a string into the specified section of an initialization file.

Приватные методы

Метод Описание
GetPrivateProfileInt ( string section, string key, int def, string filePath ) : int
WritePrivateProfileString ( string section, string key, string val, string filePath ) : int

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

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

Initializes a new instance of IniFile to read and write
public IniFile ( string inipath ) : System
inipath string Path of ini file to read or write
Результат System

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

Retrieves an integer associated with a key in the specified section.
public IniReadInt ( string section, string key, int def ) : int
section string The name of the section to which the string will be copied.
key string The name of the key to be associated with a string.
def int The default value to return if the key name cannot be found.
Результат int

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

Copies a string into the specified section of an initialization file.
public IniWriteString ( string section, string key, string value ) : bool
section string The name of the section to which the string will be copied.
key string The name of the key to be associated with a string.
value string A string to be written to the file.
Результат bool