共用方式為


MediaCaptureDeviceExclusiveControlReleaseMode 列舉

定義

指定釋放相機獨佔存取的條件。

public enum class MediaCaptureDeviceExclusiveControlReleaseMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
enum class MediaCaptureDeviceExclusiveControlReleaseMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
public enum MediaCaptureDeviceExclusiveControlReleaseMode
var value = Windows.Media.Capture.MediaCaptureDeviceExclusiveControlReleaseMode.onDispose
Public Enum MediaCaptureDeviceExclusiveControlReleaseMode
繼承
MediaCaptureDeviceExclusiveControlReleaseMode
屬性

Windows 需求

裝置系列
Windows 11 Insider Preview (已於 10.0.23504.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v15.0 引進)

欄位

OnAllStreamsStopped 1

當相關聯相機的所有資料流程停止時,就會釋放獨佔控制項。

OnDispose 0

處置相關聯的相機物件時,會釋放獨佔控制項。

備註

呼叫 [TryAcquireExclusiveControl] (xref:Windows.Media.Devices.VideoDeviceController.TryAcquireExclusiveControl (System.String,Windows.Media.Capture.MediaCaptureDeviceExclusiveControlReleaseMode) ,以取得相機的獨佔存取權。

適用於