C# 클래스 Utility.ModifyRegistry.ModifyRegistry

An useful class to read/write/delete/count registry keys
파일 보기 프로젝트 열기: ThomasMoreCollege/CinderellaMGS 1 사용 예제들

공개 메소드들

메소드 설명
DeleteKey ( string KeyName ) : bool

To delete a registry key. input: KeyName (string) output: true or false

DeleteSubKeyTree ( ) : bool

To delete a sub key and any child. input: void output: true or false

Read ( string KeyName ) : string

To read a registry key. input: KeyName (string) output: value (string)

SubKeyCount ( ) : int

Retrive the count of subkeys at the current key. input: void output: number of subkeys

ValueCount ( ) : int

Retrive the count of values in the key. input: void output: number of keys

Write ( string KeyName, object Value ) : bool

To write into a registry key. input: KeyName (string) , Value (object) output: true or false

비공개 메소드들

메소드 설명
ShowErrorMessage ( Exception e, string Title ) : void

메소드 상세

DeleteKey() 공개 메소드

To delete a registry key. input: KeyName (string) output: true or false
public DeleteKey ( string KeyName ) : bool
KeyName string
리턴 bool

DeleteSubKeyTree() 공개 메소드

To delete a sub key and any child. input: void output: true or false
public DeleteSubKeyTree ( ) : bool
리턴 bool

Read() 공개 메소드

To read a registry key. input: KeyName (string) output: value (string)
public Read ( string KeyName ) : string
KeyName string
리턴 string

SubKeyCount() 공개 메소드

Retrive the count of subkeys at the current key. input: void output: number of subkeys
public SubKeyCount ( ) : int
리턴 int

ValueCount() 공개 메소드

Retrive the count of values in the key. input: void output: number of keys
public ValueCount ( ) : int
리턴 int

Write() 공개 메소드

To write into a registry key. input: KeyName (string) , Value (object) output: true or false
public Write ( string KeyName, object Value ) : bool
KeyName string
Value object
리턴 bool