共用方式為


IsolatedWindowsEnvironmentOptions.AllowCameraAndMicrophoneAccess 屬性

定義

已取代。 布爾值,指出在隔離 Windows 環境中執行的應用程式是否可以存取裝置的相機和麥克風。

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

void AllowCameraAndMicrophoneAccess(bool value);
/// [get: Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
bool AllowCameraAndMicrophoneAccess();

void AllowCameraAndMicrophoneAccess(bool value);
public bool AllowCameraAndMicrophoneAccess { get; set; }
public bool AllowCameraAndMicrophoneAccess { [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")] get; [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")] set; }
var boolean = isolatedWindowsEnvironmentOptions.allowCameraAndMicrophoneAccess;
isolatedWindowsEnvironmentOptions.allowCameraAndMicrophoneAccess = boolean;
Public Property AllowCameraAndMicrophoneAccess As Boolean

屬性值

Boolean

bool

Boolean

屬性

備註

警告

這是已被取代的 API。

適用於