Compartilhar via


TelemetrySession.PostEvent Method

Definition

Overloads

PostEvent(TelemetryEvent)

Queues a telemetry event to be posted to a server. Choose this method for flexibility. You should consider choosing PostUserTask, PostOperation, PostFault or PostAsset. These will enable a richer telemetry experience with additional insights provided by Visual Studio Data Model. If your data point doesn't align with any VS Data Model entity, please don't force any association and continue to use this method. If you have any questions regarding VS Data Model, please email VS Data Model Crew (vsdmcrew@microsoft.com).

PostEvent(String)

Queues a telemetry event to be posted to a server. Choose this method for simplicity if the name is the only event property. You should consider choosing PostUserTask, PostOperation, PostFault or PostAsset. These will enable a richer telemetry experience with additional insights provided by Visual Studio Data Model. If your data point doesn't align with any VS Data Model entity, please don't force any association and continue to use this method. If you have any questions regarding VS Data Model, please email VS Data Model Crew (vsdmcrew@microsoft.com).

PostEvent(TelemetryEvent)

Queues a telemetry event to be posted to a server. Choose this method for flexibility. You should consider choosing PostUserTask, PostOperation, PostFault or PostAsset. These will enable a richer telemetry experience with additional insights provided by Visual Studio Data Model. If your data point doesn't align with any VS Data Model entity, please don't force any association and continue to use this method. If you have any questions regarding VS Data Model, please email VS Data Model Crew (vsdmcrew@microsoft.com).

public:
 void PostEvent(Microsoft::VisualStudio::Telemetry::TelemetryEvent ^ telemetryEvent);
public void PostEvent (Microsoft.VisualStudio.Telemetry.TelemetryEvent telemetryEvent);
member this.PostEvent : Microsoft.VisualStudio.Telemetry.TelemetryEvent -> unit
Public Sub PostEvent (telemetryEvent As TelemetryEvent)

Parameters

telemetryEvent
TelemetryEvent

A telemetry event that is ready to be posted.

Applies to

PostEvent(String)

Queues a telemetry event to be posted to a server. Choose this method for simplicity if the name is the only event property. You should consider choosing PostUserTask, PostOperation, PostFault or PostAsset. These will enable a richer telemetry experience with additional insights provided by Visual Studio Data Model. If your data point doesn't align with any VS Data Model entity, please don't force any association and continue to use this method. If you have any questions regarding VS Data Model, please email VS Data Model Crew (vsdmcrew@microsoft.com).

public:
 void PostEvent(System::String ^ eventName);
public void PostEvent (string eventName);
member this.PostEvent : string -> unit
Public Sub PostEvent (eventName As String)

Parameters

eventName
String

Event name that is unique, not null and not empty.

Applies to