FocusControl.SetPresetAsync 方法

定义

重载

SetPresetAsync(FocusPreset, Boolean)

异步设置焦点 预设,指定操作是否必须在设备聚焦之前完成。

SetPresetAsync(FocusPreset)

异步设置焦点 预设

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

参数

preset
FocusPreset

将 Preset 属性设置为的焦点 预设

completeBeforeFocus
Boolean

bool

指定异步操作是否必须在设备聚焦之前完成。

返回

用于控制异步操作的对象。

属性

另请参阅

适用于

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

参数

preset
FocusPreset

将 Preset 属性设置为的焦点 预设

返回

用于控制异步操作的对象。

属性

另请参阅

适用于