AppResourceGroupInfoWatcherEventArgs
AppResourceGroupInfoWatcherEventArgs
AppResourceGroupInfoWatcherEventArgs
AppResourceGroupInfoWatcherEventArgs
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Provides information about app resource groups.
public : sealed class AppResourceGroupInfoWatcherEventArgs : IAppResourceGroupInfoWatcherEventArgspublic sealed class AppResourceGroupInfoWatcherEventArgs : IAppResourceGroupInfoWatcherEventArgsPublic NotInheritable Class AppResourceGroupInfoWatcherEventArgs Implements IAppResourceGroupInfoWatcherEventArgs// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
| Capabilities |
appDiagnostics
|
Properties
AppDiagnosticInfos AppDiagnosticInfos AppDiagnosticInfos AppDiagnosticInfos
Prerelease. Gets diagnostic info for the resource group.
public : IVectorView<AppDiagnosticInfo> AppDiagnosticInfos { get; }public IReadOnlyList<AppDiagnosticInfo> AppDiagnosticInfos { get; }Public ReadOnly Property AppDiagnosticInfos As IReadOnlyList<AppDiagnosticInfo>// You can use this property in JavaScript.
- Value
- IVectorView<AppDiagnosticInfo> IReadOnlyList<AppDiagnosticInfo> IReadOnlyList<AppDiagnosticInfo> IReadOnlyList<AppDiagnosticInfo>
The diagnostic info for the apps associated with the AppResourceGroupInfo for the current event.
Additional features and requirements
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
| Capabilities |
appDiagnostics
|
Examples
// A resource group has been added to the list in the AppDiagnosticInfo.
private void OnResourceGroupAdded(
AppResourceGroupInfoWatcher sender, AppResourceGroupInfoWatcherEventArgs args)
{
// A resource group can be associated with multiple apps. The event args here
// indicate which apps are part of the watched resource group. Otherwise the
// app has to keep a map between them.
if (args.AppDiagnosticInfos.Count > 0)
{
Debug.WriteLine("ResourceGroup added for {0}", args.AppDiagnosticInfos[0].AppInfo.DisplayInfo);
}
}
Remarks
Typically there will only be one app associated with the AppResourceGroupInfo, but there can be more.
AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo
Prerelease. Gets diagnostic info, such as memory usage, and energy use.
public : AppResourceGroupInfo AppResourceGroupInfo { get; }public AppResourceGroupInfo AppResourceGroupInfo { get; }Public ReadOnly Property AppResourceGroupInfo As AppResourceGroupInfo// You can use this property in JavaScript.
The AppResourceGroupInfo that was added or removed.
Additional features and requirements
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
| Capabilities |
appDiagnostics
|