Back to Devexpress

CameraControl.SaveSettingsToRegistry(String) Method

windowsforms-devexpress-dot-xtraeditors-dot-camera-dot-cameracontrol-dot-savesettingstoregistry-x28-system-dot-string-x29.md

latest5.2 KB
Original Source

CameraControl.SaveSettingsToRegistry(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

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

Namespace : DevExpress.XtraEditors.Camera

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual bool SaveSettingsToRegistry(
    string path
)
vb
Public Overridable Function SaveSettingsToRegistry(
    path As String
) As Boolean

Parameters

NameTypeDescription
pathString

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

|

Returns

TypeDescription
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

RestoreSettingsFromRegistry(String)

SaveSettingsToXml(String)

CameraControl Class

CameraControl Members

DevExpress.XtraEditors.Camera Namespace