C# Class Nexus.Client.Settings.GeneralSettingsGroup

The group of general settings.
Inheritance: SettingsGroup
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
AddFileAssociation ( string p_strExtension, string p_strDescription ) : void

Add a possible client programme file association.

GeneralSettingsGroup ( IEnvironmentInfo p_eifEnvironmentInfo ) : System

A simple constructor that initializes the object with the given dependencies.

Load ( ) : void

Loads the grouped setting values from the persistent store.

Save ( ) : bool

Persists the grouped setting values to the persistent store.

Méthodes protégées

Méthode Description
AssociateFile ( FileAssociationSetting p_fasFileAssociation ) : void

Associates the specifed file type with the client.

AssociateUrl ( string p_strUrlProtocol, string p_strDescription ) : void

Associates the specifed URL protocol with the client.

IsAssociated ( string p_strExtension ) : bool

Determines if the specified file type is associated with the client.

IsUrlAssociated ( string p_strUrlProtocol ) : bool

Determines if the specified URL protocol is associated with the client.

UnassociateFile ( FileAssociationSetting p_fasFileAssociation ) : void

Removes the association of the specifed file type with the client.

UnassociateUrl ( string p_strUrlProtocol ) : void

Removes the association of the specifed URL protocol with the client.

Private Methods

Méthode Description
AddShellExtension ( string p_strExtension ) : void

Adds a shell extension for the file type represented by the specified key.

RemoveShellExtension ( string p_strExtension ) : void

Removes a shell extension for the file type represented by the specified key.

Method Details

AddFileAssociation() public méthode

Add a possible client programme file association.
public AddFileAssociation ( string p_strExtension, string p_strDescription ) : void
p_strExtension string The extension to allow to be associated with the client.
p_strDescription string A description of the file type.
Résultat void

AssociateFile() protected méthode

Associates the specifed file type with the client.
Thrown if the user does not have sufficient priviledges /// to create the association.
protected AssociateFile ( FileAssociationSetting p_fasFileAssociation ) : void
p_fasFileAssociation FileAssociationSetting The description of the file type association to create.
Résultat void

AssociateUrl() protected méthode

Associates the specifed URL protocol with the client.
Thrown if the user does not have sufficient priviledges /// to create the association.
protected AssociateUrl ( string p_strUrlProtocol, string p_strDescription ) : void
p_strUrlProtocol string The URL protocol for which to create an association.
p_strDescription string The description of the URL protocol.
Résultat void

GeneralSettingsGroup() public méthode

A simple constructor that initializes the object with the given dependencies.
public GeneralSettingsGroup ( IEnvironmentInfo p_eifEnvironmentInfo ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
Résultat System

IsAssociated() protected méthode

Determines if the specified file type is associated with the client.
protected IsAssociated ( string p_strExtension ) : bool
p_strExtension string The extension of the file type for which it is to be determined /// whether it is associated with the client.
Résultat bool

IsUrlAssociated() protected méthode

Determines if the specified URL protocol is associated with the client.
protected IsUrlAssociated ( string p_strUrlProtocol ) : bool
p_strUrlProtocol string The protocol of the URL for which it is to be determined /// whether it is associated with the client.
Résultat bool

Load() public méthode

Loads the grouped setting values from the persistent store.
public Load ( ) : void
Résultat void

Save() public méthode

Persists the grouped setting values to the persistent store.
public Save ( ) : bool
Résultat bool

UnassociateFile() protected méthode

Removes the association of the specifed file type with the client.
Thrown if the user does not have sufficient priviledges /// to remove the association.
protected UnassociateFile ( FileAssociationSetting p_fasFileAssociation ) : void
p_fasFileAssociation FileAssociationSetting The description of the file type association to remove.
Résultat void

UnassociateUrl() protected méthode

Removes the association of the specifed URL protocol with the client.
Thrown if the user does not have sufficient priviledges /// to remove the association.
protected UnassociateUrl ( string p_strUrlProtocol ) : void
p_strUrlProtocol string The URL protocol for which to remove the association.
Résultat void