共用方式為


AdvancedPhotoCapture.CaptureAsync 方法

定義

多載

CaptureAsync()

以非同步方式執行進階相片擷取。

CaptureAsync(Object)

以非同步方式執行進階相片擷取,將所提供的應用程式定義內容物件傳遞至作業的結果。

CaptureAsync()

以非同步方式執行進階相片擷取。

public:
 virtual IAsyncOperation<AdvancedCapturedPhoto ^> ^ CaptureAsync() = CaptureAsync;
/// [Windows.Foundation.Metadata.Overload("CaptureAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync();
[Windows.Foundation.Metadata.Overload("CaptureAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync();
function captureAsync()
Public Function CaptureAsync () As IAsyncOperation(Of AdvancedCapturedPhoto)

傳回

在成功完成時傳回 AdvancedCapturedPhoto 的非同步作業。

屬性

備註

在呼叫CaptureAsync之前,必須先呼叫MediaCapture.PrepareAdvancedPhotoCaptureAsync

不支援使用 AdvancedPhotoCapture 同時錄製影片與相片擷取。

另請參閱

適用於

CaptureAsync(Object)

以非同步方式執行進階相片擷取,將所提供的應用程式定義內容物件傳遞至作業的結果。

public:
 virtual IAsyncOperation<AdvancedCapturedPhoto ^> ^ CaptureAsync(Platform::Object ^ context) = CaptureAsync;
/// [Windows.Foundation.Metadata.Overload("CaptureWithContextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync(IInspectable const& context);
[Windows.Foundation.Metadata.Overload("CaptureWithContextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync(object context);
function captureAsync(context)
Public Function CaptureAsync (context As Object) As IAsyncOperation(Of AdvancedCapturedPhoto)

參數

context
Object

Platform::Object

IInspectable

應用程式定義的內容物件,會將內容資訊傳遞至作業的結果。

傳回

在成功完成時傳回 AdvancedCapturedPhoto 的非同步作業。

屬性

備註

在呼叫CaptureAsync之前,必須先呼叫MediaCapture.PrepareAdvancedPhotoCaptureAsync

不支援使用 AdvancedPhotoCapture 同時錄製影片與相片擷取。

另請參閱

適用於