IClientAnalyticsChannel.LogEvent, méthode (String, IDictionary<String, Object>)

Signale un événement au service Application Insights.

Espace de noms :  Microsoft.ApplicationInsights.Telemetry.WindowsStore
Assembly :  Microsoft.ApplicationInsights.Telemetry.WindowsStore (dans Microsoft.ApplicationInsights.Telemetry.WindowsStore.dll)

Syntaxe

'Déclaration
Sub LogEvent ( _
    eventName As String, _
    properties As IDictionary(Of String, Object) _
)
void LogEvent(
    string eventName,
    IDictionary<string, Object> properties
)
void LogEvent(
    String^ eventName, 
    IDictionary<String^, Object^>^ properties
)
abstract LogEvent : 
        eventName:string * 
        properties:IDictionary<string, Object> -> unit 
function LogEvent(
    eventName : String, 
    properties : IDictionary<String, Object>
)

Paramètres

  • eventName
    Type : String
    Nom de l'événement.Pour hiérarchiser les événements dans les rapports, utilisez des noms comme « parent/enfant ».
  • properties
    Type : IDictionary<String, Object>
    Valeurs nommées de votre choix.Elles permettent de filtrer les rapports dans Application Insights.Une propriété peut avoir une valeur numérique.

Sécurité .NET Framework

  • Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir dd66cd4c-b087-415f-9c3e-94e3a1835f74.

Voir aussi

Référence

IClientAnalyticsChannel Interface

LogEvent, surcharge

Microsoft.ApplicationInsights.Telemetry.WindowsStore, espace de noms