FocusControl.SetPresetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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