C# 클래스 NetSparkle.NetSparkleRegistryConfiguration

This class handles all registry values which are used from sparkle to handle update intervalls. All values are stored in HKCU\Software\Vendor\AppName which will be read ot from the assembly information. All values are of the REG_SZ type, no matter what their "logical" type is. The following options are available: CheckForUpdate - Boolean - Whether NetSparkle should check for updates LastCheckTime - time_t - Time of last check SkipThisVersion - String - If the user skipped an update, then the version to ignore is stored here (e.g. "1.4.3") DidRunOnce - Boolean - Check only one time when the app launched
상속: NetSparkle.NetSparkleConfiguration
파일 보기 프로젝트 열기: Deadpikle/NetSparkle 1 사용 예제들

공개 메소드들

메소드 설명
NetSparkleRegistryConfiguration ( string referenceAssembly ) : System

The constructor reads out all configured values

NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed ) : System

Constructor

NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed, string registryPath ) : System

Constructor

Reload ( ) : void

Reloads the configuration object

SetVersionToSkip ( string version ) : void

This method allows to skip a specific version

TouchCheckTime ( ) : void

Touches the check time to now, should be used after a check directly

TouchProfileTime ( ) : void

Touches to profile time

비공개 메소드들

메소드 설명
BuildRegistryPath ( ) : String

This function build a valid registry path in dependecy to the assembly information

ConvertDateToString ( System.DateTime dt ) : string
ConvertStringToDate ( string str ) : System.DateTime
LoadValuesFromPath ( String regPath ) : System.Boolean

This method loads the values from registry

SaveValuesToPath ( String regPath ) : System.Boolean

This method store the information into registry

메소드 상세

NetSparkleRegistryConfiguration() 공개 메소드

The constructor reads out all configured values
public NetSparkleRegistryConfiguration ( string referenceAssembly ) : System
referenceAssembly string the reference assembly name
리턴 System

NetSparkleRegistryConfiguration() 공개 메소드

Constructor
public NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed ) : System
referenceAssembly string the name of hte reference assembly
isReflectionBasedAssemblyAccessorUsed bool true if reflection is used to access the assembly.
리턴 System

NetSparkleRegistryConfiguration() 공개 메소드

Constructor
public NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed, string registryPath ) : System
referenceAssembly string the name of hte reference assembly
isReflectionBasedAssemblyAccessorUsed bool true if reflection is used to access the assembly.
registryPath string true if reflection is used to access the assembly.
리턴 System

Reload() 공개 메소드

Reloads the configuration object
public Reload ( ) : void
리턴 void

SetVersionToSkip() 공개 메소드

This method allows to skip a specific version
public SetVersionToSkip ( string version ) : void
version string the version to skeip
리턴 void

TouchCheckTime() 공개 메소드

Touches the check time to now, should be used after a check directly
public TouchCheckTime ( ) : void
리턴 void

TouchProfileTime() 공개 메소드

Touches to profile time
public TouchProfileTime ( ) : void
리턴 void