MediaCaptureInitializationSettings.AlwaysPlaySystemShutterSound 属性

定义

获取一个值,该值指示在捕获照片时系统是否应始终播放快门声音。

public:
 property bool AlwaysPlaySystemShutterSound { bool get(); void set(bool value); };
bool AlwaysPlaySystemShutterSound();

void AlwaysPlaySystemShutterSound(bool value);
public bool AlwaysPlaySystemShutterSound { get; set; }
var boolean = mediaCaptureInitializationSettings.alwaysPlaySystemShutterSound;
mediaCaptureInitializationSettings.alwaysPlaySystemShutterSound = boolean;
Public Property AlwaysPlaySystemShutterSound As Boolean

属性值

Boolean

bool

如此 如果系统应始终播放快门声音;否则为 false。

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
backgroundMediaRecording

注解

某些区域要求系统在拍摄照片时播放快门声音。 将此值设置为 true 将导致系统始终播放快门声音,而不管当前区域是否需要。 如果需要,将此值设置为 false 不会抑制系统快门声音。

适用于