MediaCapture.StartRecordToStorageFileAsync Methode

Definition

Startet die asynchrone Aufzeichnung in einer Speicherdatei.

public:
 virtual IAsyncAction ^ StartRecordToStorageFileAsync(MediaEncodingProfile ^ encodingProfile, IStorageFile ^ file) = StartRecordToStorageFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile const& encodingProfile, IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile encodingProfile, IStorageFile file);
function startRecordToStorageFileAsync(encodingProfile, file)
Public Function StartRecordToStorageFileAsync (encodingProfile As MediaEncodingProfile, file As IStorageFile) As IAsyncAction

Parameter

encodingProfile
MediaEncodingProfile

Das Codierungsprofil für die Aufzeichnung.

file
IStorageFile

Die Speicherdatei, in der das Image gespeichert wird.

Gibt zurück

Gibt ein IAsyncAction-Objekt zurück, das zum Steuern des asynchronen Vorgangs verwendet wird.

Attribute

Windows-Anforderungen

App-Funktionen
backgroundMediaRecording microphone webcam

Hinweise

Anleitungen zur Aufzeichnung in einer Datei finden Sie unter Grundlegende Foto-, Video- und Audioaufnahme mit MediaCapture.

Gilt für:

Weitere Informationen