Udostępnij za pośrednictwem


FocusControl.SetPresetAsync Method

Definition

Overloads

SetPresetAsync(FocusPreset, Boolean)

Asynchronously sets the focus Preset, specifying if the operation must complete before the device is focused.

SetPresetAsync(FocusPreset)

Asynchronously sets the focus Preset.

SetPresetAsync(FocusPreset, Boolean)

Asynchronously sets the focus Preset, specifying if the operation must complete before the device is focused.

public:
 virtual IAsyncAction ^ SetPresetAsync(FocusPreset preset, bool completeBeforeFocus) = SetPresetAsync;
/// [Windows.Foundation.Metadata.Overload("SetPresetWithCompletionOptionAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetPresetAsync(FocusPreset const& preset, bool const& completeBeforeFocus);
[Windows.Foundation.Metadata.Overload("SetPresetWithCompletionOptionAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetPresetAsync(FocusPreset preset, bool completeBeforeFocus);
function setPresetAsync(preset, completeBeforeFocus)
Public Function SetPresetAsync (preset As FocusPreset, completeBeforeFocus As Boolean) As IAsyncAction

Parameters

preset
FocusPreset

The focus preset to set the Preset property to.

completeBeforeFocus
Boolean

bool

Specifies if the asynchronous operation must complete before the device is focused.

Returns

The object that is used to control the asynchronous operation.

Attributes

See also

Applies to

SetPresetAsync(FocusPreset)

Asynchronously sets the focus Preset.

public:
 virtual IAsyncAction ^ SetPresetAsync(FocusPreset preset) = SetPresetAsync;
/// [Windows.Foundation.Metadata.Overload("SetPresetAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetPresetAsync(FocusPreset const& preset);
[Windows.Foundation.Metadata.Overload("SetPresetAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetPresetAsync(FocusPreset preset);
function setPresetAsync(preset)
Public Function SetPresetAsync (preset As FocusPreset) As IAsyncAction

Parameters

preset
FocusPreset

The focus preset to set the Preset property to.

Returns

The object that is used to control the asynchronous operation.

Attributes

See also

Applies to