C# Class Abstractions.Settings.DynamicSettings

Inheritance: System.Dynamic.DynamicObject
Show file Open project: MutonUfoAI/pgina Class Usage Examples

Public Properties

Property Type Description
ROOT_KEY string

Protected Properties

Property Type Description
m_rootKey string

Public Methods

Method Description
DynamicSettings ( ) : System
DynamicSettings ( System.Guid pluginGuid ) : System
DynamicSettings ( System.Guid pluginGuid, string subkey ) : System
DynamicSettings ( string root ) : System
GetEncryptedSetting ( string name ) : string
GetEncryptedSetting ( string name, byte optionalEntropy ) : string
GetSetting ( string name ) : DynamicSetting
GetSetting ( string name, object def ) : DynamicSetting
GetSettings ( string encypted ) : string>.Dictionary

Get a dictionary containing all values of the pgina registry key. The Dictionary key is the sub-key name, the value is a pGinaDynamicSettings object corresponding to the sub-key.

SetDefault ( string name, object value ) : void

Sets the default value for a setting. Checks to see if the setting is already defined in the registry. If so, the method does nothing. Otherwise the setting is initialized to value.

SetDefaultEncryptedSetting ( string name, string value ) : void
SetDefaultEncryptedSetting ( string name, string value, byte optionalEntropy ) : void
SetEncryptedSetting ( string name, string value ) : void
SetEncryptedSetting ( string name, string value, byte optionalEntropy ) : void
SetSetting ( string name, object value ) : void
TryGetMember ( GetMemberBinder binder, object &result ) : bool
TrySetMember ( SetMemberBinder binder, object value ) : bool

Private Methods

Method Description
GetSettingFromRegistry ( string name ) : object

Method Details

DynamicSettings() public method

public DynamicSettings ( ) : System
return System

DynamicSettings() public method

public DynamicSettings ( System.Guid pluginGuid ) : System
pluginGuid System.Guid
return System

DynamicSettings() public method

public DynamicSettings ( System.Guid pluginGuid, string subkey ) : System
pluginGuid System.Guid
subkey string
return System

DynamicSettings() public method

public DynamicSettings ( string root ) : System
root string
return System

GetEncryptedSetting() public method

public GetEncryptedSetting ( string name ) : string
name string
return string

GetEncryptedSetting() public method

public GetEncryptedSetting ( string name, byte optionalEntropy ) : string
name string
optionalEntropy byte
return string

GetSetting() public method

public GetSetting ( string name ) : DynamicSetting
name string
return DynamicSetting

GetSetting() public method

public GetSetting ( string name, object def ) : DynamicSetting
name string
def object
return DynamicSetting

GetSettings() public method

Get a dictionary containing all values of the pgina registry key. The Dictionary key is the sub-key name, the value is a pGinaDynamicSettings object corresponding to the sub-key.
public GetSettings ( string encypted ) : string>.Dictionary
encypted string
return string>.Dictionary

SetDefault() public method

Sets the default value for a setting. Checks to see if the setting is already defined in the registry. If so, the method does nothing. Otherwise the setting is initialized to value.
public SetDefault ( string name, object value ) : void
name string The name of the setting
value object The default value for the setting
return void

SetDefaultEncryptedSetting() public method

public SetDefaultEncryptedSetting ( string name, string value ) : void
name string
value string
return void

SetDefaultEncryptedSetting() public method

public SetDefaultEncryptedSetting ( string name, string value, byte optionalEntropy ) : void
name string
value string
optionalEntropy byte
return void

SetEncryptedSetting() public method

public SetEncryptedSetting ( string name, string value ) : void
name string
value string
return void

SetEncryptedSetting() public method

public SetEncryptedSetting ( string name, string value, byte optionalEntropy ) : void
name string
value string
optionalEntropy byte
return void

SetSetting() public method

public SetSetting ( string name, object value ) : void
name string
value object
return void

TryGetMember() public method

public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder GetMemberBinder
result object
return bool

TrySetMember() public method

public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder SetMemberBinder
value object
return bool

Property Details

ROOT_KEY public static property

public static string ROOT_KEY
return string

m_rootKey protected property

protected string m_rootKey
return string