Compartir a través de


AppResourceGroupInfoWatcherEventArgs.AppDiagnosticInfos Propiedad

Definición

Obtiene información de diagnóstico para el grupo de recursos.

public:
 property IVectorView<AppDiagnosticInfo ^> ^ AppDiagnosticInfos { IVectorView<AppDiagnosticInfo ^> ^ get(); };
IVectorView<AppDiagnosticInfo> AppDiagnosticInfos();
public IReadOnlyList<AppDiagnosticInfo> AppDiagnosticInfos { get; }
var iVectorView = appResourceGroupInfoWatcherEventArgs.appDiagnosticInfos;
Public ReadOnly Property AppDiagnosticInfos As IReadOnlyList(Of AppDiagnosticInfo)

Valor de propiedad

La información de diagnóstico de las aplicaciones asociadas a AppResourceGroupInfo para el evento actual.

Requisitos de Windows

Características de aplicaciones
appDiagnostics

Ejemplos

// 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);
    }
}

Comentarios

Normalmente solo habrá una aplicación asociada a AppResourceGroupInfo, pero puede haber más.

Se aplica a