C# 클래스 DSShared.Windows.RegistryInfo

a class to help facilitate the saving and loading of values into the registry in a central location
파일 보기 프로젝트 열기: pmprog/OpenXCOM.Tools 1 사용 예제들

공개 메소드들

메소드 설명
AddProperty ( ) : void

Adds properties to be saved/loaded

AddProperty ( PropertyInfo property ) : void

adds a property to be saved/loaded

ClearKey ( ) : void

Calls ClearKey(false)

ClearKey ( bool saveOnClose ) : void

Deletes the key located at HKEY_CURRENT_USER\Software\RegKey\ RegKey is the public static parameter of this class

CloseKey ( ) : void

Closes the registry key previously opened by OpenKey()

Closing ( object sender, System e ) : void

Method intended for use with Form.Closing events - directly calls Save

Load ( object sender, EventArgs e ) : void

loads the specified values from the registry. parameters match those needed for a Form.Load event

OpenKey ( ) : RegistryKey

Opens the registry key and returns it for custom read/write

RegistryInfo ( object obj ) : System

Constructor that uses the ToString() value of the object as the name of the constructor parameter

RegistryInfo ( object obj, string name ) : System

Constructor that uses the name parameter as the registry key to save values under

Save ( object sender, EventArgs e ) : void

Saves the specified values into the registry

메소드 상세

AddProperty() 공개 메소드

Adds properties to be saved/loaded
public AddProperty ( ) : void
리턴 void

AddProperty() 공개 메소드

adds a property to be saved/loaded
public AddProperty ( PropertyInfo property ) : void
property System.Reflection.PropertyInfo
리턴 void

ClearKey() 공개 메소드

Calls ClearKey(false)
public ClearKey ( ) : void
리턴 void

ClearKey() 공개 메소드

Deletes the key located at HKEY_CURRENT_USER\Software\RegKey\ RegKey is the public static parameter of this class
public ClearKey ( bool saveOnClose ) : void
saveOnClose bool if false, a future call to Save() will have no effect
리턴 void

CloseKey() 공개 메소드

Closes the registry key previously opened by OpenKey()
public CloseKey ( ) : void
리턴 void

Closing() 공개 메소드

Method intended for use with Form.Closing events - directly calls Save
public Closing ( object sender, System e ) : void
sender object
e System
리턴 void

Load() 공개 메소드

loads the specified values from the registry. parameters match those needed for a Form.Load event
public Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

OpenKey() 공개 메소드

Opens the registry key and returns it for custom read/write
public OpenKey ( ) : RegistryKey
리턴 Microsoft.Win32.RegistryKey

RegistryInfo() 공개 메소드

Constructor that uses the ToString() value of the object as the name of the constructor parameter
public RegistryInfo ( object obj ) : System
obj object
리턴 System

RegistryInfo() 공개 메소드

Constructor that uses the name parameter as the registry key to save values under
public RegistryInfo ( object obj, string name ) : System
obj object the object to save/load values into the registry
name string the name of the registry key to save/load
리턴 System

Save() 공개 메소드

Saves the specified values into the registry
public Save ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void