AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A JSON object representing a batch of unique event occurrences in your app.

Inheritance Hierarchy

System.Object
  Amazon.MobileAnalytics.Model.Event

Namespace: Amazon.MobileAnalytics.Model
Assembly: AWSSDK.MobileAnalytics.dll
Version: 3.x.y.z

Syntax

C#
public class Event

The Event type exposes the following members

Constructors

NameDescription
Public Method Event()

Properties

NameTypeDescription
Public Property Attributes System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property Attributes.

A collection of key-value pairs that give additional context to the event. The key-value pairs are specified by the developer.

This collection can be empty or the attribute object can be omitted.

Public Property EventType System.String

Gets and sets the property EventType.

A name signifying an event that occurred in your app. This is used for grouping and aggregating like events together for reporting purposes.

Public Property Metrics System.Collections.Generic.Dictionary<System.String, System.Double>

Gets and sets the property Metrics.

A collection of key-value pairs that gives additional, measurable context to the event. The key-value pairs are specified by the developer.

This collection can be empty or the attribute object can be omitted.

Public Property Session Amazon.MobileAnalytics.Model.Session

Gets and sets the property Session.

The session the event occured within.

Public Property Timestamp System.DateTime

Gets and sets the property Timestamp.

The time the event occurred in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z

Public Property Version System.String

Gets and sets the property Version.

The version of the event.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method MarshallToJson()

Creates a Json string from the Event. Expects Event and Session Timestamps to be in UTC.

Public Method Static Method UnmarshallFromJson(string)

Creates an Event object from Json.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone