IAnalyticsRequest.LogEvent, méthode (String, IEnumerable<KeyValuePair<String, Object>>)
Signalez un incident au service d'Application Insights.
Espace de noms : Microsoft.ApplicationInsights.Telemetry.Services
Assembly : Microsoft.ApplicationInsights.Telemetry.Services (dans Microsoft.ApplicationInsights.Telemetry.Services.dll)
Syntaxe
'Déclaration
Sub LogEvent ( _
eventName As String, _
properties As IEnumerable(Of KeyValuePair(Of String, Object)) _
)
void LogEvent(
string eventName,
IEnumerable<KeyValuePair<string, Object>> properties
)
void LogEvent(
String^ eventName,
IEnumerable<KeyValuePair<String^, Object^>>^ properties
)
abstract LogEvent :
eventName:string *
properties:IEnumerable<KeyValuePair<string, Object>> -> unit
function LogEvent(
eventName : String,
properties : IEnumerable<KeyValuePair<String, Object>>
)
Paramètres
- eventName
Type : String
Nom de l’événement.Pour organiser des incidents de façon hiérarchique dans les rapports, utilisez des noms comme « parent/enfant ».
- properties
Type : IEnumerable<KeyValuePair<String, Object>>
Valeurs nommées de votre choix.Les propriétés peuvent être utilisées pour filtrer les incidents dans les rapports.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
Microsoft.ApplicationInsights.Telemetry.Services, espace de noms