共用方式為


AppBroadcastingStatus 類別

定義

允許應用程式判斷它目前是否可以開始廣播,如果不是,請取得無法起始廣播原因的詳細資料。

public ref class AppBroadcastingStatus sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.AppBroadcasting.AppBroadcastingContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBroadcastingStatus final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.AppBroadcasting.AppBroadcastingContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBroadcastingStatus
Public NotInheritable Class AppBroadcastingStatus
繼承
Object Platform::Object IInspectable AppBroadcastingStatus
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.16299.0 引進)
API contract
Windows.Media.AppBroadcasting.AppBroadcastingContract (已於 v1.0 引進)

備註

可以藉由呼叫AppBroadcastingUI類別的GetStatus方法,來建立這個類別的實例。

屬性

CanStartBroadcast

取得值,指出目前應用程式是否可以開始廣播。

Details

取得 AppBroadcastingStatusDetails 物件,提供詳細資訊,指出目前應用程式目前無法開始廣播的原因。

適用於