Freigeben über


CaptureDevice.IsDefaultDevice Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that declares whether the capture device is the default device for its type (audio or video).

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property IsDefaultDevice As Boolean
public bool IsDefaultDevice { get; }

Property Value

Type: System.Boolean
true if this CaptureDevice represents the default device for its type; otherwise, false.

Remarks

If multiple devices are available, the user can select the device to use as part of the Silverlight configuration dialog box (Webcam/Mic tab). In configuration UI, audio devices and video devices are listed separately, and each can have a default. If a device is unavailable in the Silverlight configuration dialog box, no CaptureDevice instance represents it.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.