C# 클래스 Revit.SDK.Samples.ModifyIniFile.CS.IniFile

Contains methods to read and write value to specialized key in an ini file
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
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