Skip to main content

CameraControl.SaveSettingsToRegistry(String) Method

Saves the video settings of the currently used capture device to the system registry.

Namespace: DevExpress.XtraEditors.Camera

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public virtual bool SaveSettingsToRegistry(
    string path
)

Parameters

Name Type Description
path String

A String value specifying the system registry path to which the video settings are saved.

Returns

Type Description
Boolean

true if the operation is successfully completed; otherwise, false.

Remarks

Use the SaveSettingsToRegistry method to save the video settings (see CameraControl.VideoSettings) of the currently used device (see CameraControl.Device) to the system registry. The settings can then be restored via the CameraControl.RestoreSettingsFromRegistry method.

For the path parameter you can define whole and partial registry keys. For example, if you define “Software\Company", the full path will be as follows: “HKEY_CURRENT_USER\Software\Company". To store the settings in a different root key, define the entire path in the following form “HKEY_LOCAL_MACHINE\Software\Company".

The values of the following video properties are preserved:

You can also save settings to a file in XML format using the CameraControl.SaveSettingsToXml method.

See Also