共用方式為


PhoneApplicationService.RunningInBackground 事件

命名空間:  Microsoft.Phone.Shell
組件:  Microsoft.Phone (在 Microsoft.Phone.dll 中)

語法

'宣告
Public Event RunningInBackground As EventHandler(Of RunningInBackgroundEventArgs)
public event EventHandler<RunningInBackgroundEventArgs> RunningInBackground
public:
 event EventHandler<RunningInBackgroundEventArgs^>^ RunningInBackground {
    void add (EventHandler<RunningInBackgroundEventArgs^>^ value);
    void remove (EventHandler<RunningInBackgroundEventArgs^>^ value);
}
member RunningInBackground : IEvent<EventHandler<RunningInBackgroundEventArgs>,
    RunningInBackgroundEventArgs>

版本資訊

適用於 Windows Phone 應用程式的 .NET

支援版本:Windows Phone 8、Silverlight 8.1

.NET Framework 安全性

請參閱

參考

PhoneApplicationService 類別

Microsoft.Phone.Shell 命名空間