TelemetrySession.PostProperty(String, Object) Method

Definition

Queues an update to for a session-wide property. You may want to consider TelemetrySettingProperty or TelemetryMetricProperty These will enable a richer telemetry experience with additional insights provided by Visual Studio Data Model. If you have any questions regarding VS Data Model, please email VS Data Model Crew (vsdmcrew@microsoft.com).

public:
 void PostProperty(System::String ^ propertyName, System::Object ^ propertyValue);
public void PostProperty (string propertyName, object propertyValue);
member this.PostProperty : string * obj -> unit
Public Sub PostProperty (propertyName As String, propertyValue As Object)

Parameters

propertyName
String

Session property name that is unique, not null and not empty.

propertyValue
Object

Any object that represents a property value. Telemetry channels must use value.ToString(CultureInfo.InvariantCulture) to send the value to a server as a string.

Applies to