C# Class Abstractions.Settings.DynamicSettings

Inheritance: System.Dynamic.DynamicObject
Afficher le fichier Open project: MutonUfoAI/pgina Class Usage Examples

Méthodes publiques

Свойство Type Description
ROOT_KEY string

Protected Properties

Свойство Type Description
m_rootKey string

Méthodes publiques

Méthode 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

Méthode Description
GetSettingFromRegistry ( string name ) : object

Method Details

DynamicSettings() public méthode

public DynamicSettings ( ) : System
Résultat System

DynamicSettings() public méthode

public DynamicSettings ( System.Guid pluginGuid ) : System
pluginGuid System.Guid
Résultat System

DynamicSettings() public méthode

public DynamicSettings ( System.Guid pluginGuid, string subkey ) : System
pluginGuid System.Guid
subkey string
Résultat System

DynamicSettings() public méthode

public DynamicSettings ( string root ) : System
root string
Résultat System

GetEncryptedSetting() public méthode

public GetEncryptedSetting ( string name ) : string
name string
Résultat string

GetEncryptedSetting() public méthode

public GetEncryptedSetting ( string name, byte optionalEntropy ) : string
name string
optionalEntropy byte
Résultat string

GetSetting() public méthode

public GetSetting ( string name ) : DynamicSetting
name string
Résultat DynamicSetting

GetSetting() public méthode

public GetSetting ( string name, object def ) : DynamicSetting
name string
def object
Résultat DynamicSetting

GetSettings() public méthode

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
Résultat string>.Dictionary

SetDefault() public méthode

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
Résultat void

SetDefaultEncryptedSetting() public méthode

public SetDefaultEncryptedSetting ( string name, string value ) : void
name string
value string
Résultat void

SetDefaultEncryptedSetting() public méthode

public SetDefaultEncryptedSetting ( string name, string value, byte optionalEntropy ) : void
name string
value string
optionalEntropy byte
Résultat void

SetEncryptedSetting() public méthode

public SetEncryptedSetting ( string name, string value ) : void
name string
value string
Résultat void

SetEncryptedSetting() public méthode

public SetEncryptedSetting ( string name, string value, byte optionalEntropy ) : void
name string
value string
optionalEntropy byte
Résultat void

SetSetting() public méthode

public SetSetting ( string name, object value ) : void
name string
value object
Résultat void

TryGetMember() public méthode

public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder GetMemberBinder
result object
Résultat bool

TrySetMember() public méthode

public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder SetMemberBinder
value object
Résultat bool

Property Details

ROOT_KEY public_oe static_oe property

public static string ROOT_KEY
Résultat string

m_rootKey protected_oe property

protected string m_rootKey
Résultat string