AssetEvent Constructors

Definition

Overloads

AssetEvent(String, String, Int32)

Initializes a new instance of the AssetEvent class.

AssetEvent(String, String, Int32, TelemetryEventCorrelation)

Initializes a new instance of the AssetEvent class.

AssetEvent(String, String, Int32)

Initializes a new instance of the AssetEvent class.

public:
 AssetEvent(System::String ^ eventName, System::String ^ assetId, int assetEventVersion);
public AssetEvent (string eventName, string assetId, int assetEventVersion);
new Microsoft.VisualStudio.Telemetry.AssetEvent : string * string * int -> Microsoft.VisualStudio.Telemetry.AssetEvent
Public Sub New (eventName As String, assetId As String, assetEventVersion As Integer)

Parameters

eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

assetId
String

Used to identify the asset. The id should be immutable in the asset life cycle, even if the status or content changes over time. E.g., project guid is generated during project creation and will never change. This makes it a good candidate for asset id of Project asset.

assetEventVersion
Int32

Used for customized properties versioning. E.g., project asset posts event with name "vs/platform/project". If the event is updated, uses this parameter to increment the version.

Applies to

AssetEvent(String, String, Int32, TelemetryEventCorrelation)

Initializes a new instance of the AssetEvent class.

public:
 AssetEvent(System::String ^ eventName, System::String ^ assetId, int assetEventVersion, Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation correlation);
public AssetEvent (string eventName, string assetId, int assetEventVersion, Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation correlation);
new Microsoft.VisualStudio.Telemetry.AssetEvent : string * string * int * Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation -> Microsoft.VisualStudio.Telemetry.AssetEvent
Public Sub New (eventName As String, assetId As String, assetEventVersion As Integer, correlation As TelemetryEventCorrelation)

Parameters

eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

assetId
String

Used to identify the asset. The id should be immutable in the asset life cycle, even if the status or content changes over time. E.g., project guid is generated during project creation and will never change. This makes it a good candidate for asset id of Project asset.

assetEventVersion
Int32

Used for customized properties versioning. E.g., project asset posts event with name "vs/platform/project". If the event is updated, uses this parameter to increment the version.

correlation
TelemetryEventCorrelation

Correlation value for this event.

Applies to