C# Класс Nexus.Client.Settings.GeneralSettingsGroup

The group of general settings.
Наследование: SettingsGroup
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddFileAssociation() публичный Метод

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.
Результат void

AssociateFile() защищенный Метод

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.
Результат void

AssociateUrl() защищенный Метод

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.
Результат void

GeneralSettingsGroup() публичный Метод

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.
Результат System

IsAssociated() защищенный Метод

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.
Результат bool

IsUrlAssociated() защищенный Метод

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.
Результат bool

Load() публичный Метод

Loads the grouped setting values from the persistent store.
public Load ( ) : void
Результат void

Save() публичный Метод

Persists the grouped setting values to the persistent store.
public Save ( ) : bool
Результат bool

UnassociateFile() защищенный Метод

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.
Результат void

UnassociateUrl() защищенный Метод

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.
Результат void