TelemetrySessionCommandLineExtensions.PostCommandLineFlags Method

Definition

Overloads

PostCommandLineFlags(TelemetrySession, String[])

Queues a telemetry event with command line flags information to be posted to the server. Only command line flags (identified by the given prefixes) will be included.

PostCommandLineFlags(TelemetrySession, IEnumerable<String>, IDictionary<String,Object>)

Queues a telemetry event with command line flags information with additional properties to be posted to the server. Only command line flags (identified by the given prefixes) will be included.

PostCommandLineFlags(TelemetrySession, String[])

Queues a telemetry event with command line flags information to be posted to the server. Only command line flags (identified by the given prefixes) will be included.

public:
[System::Runtime::CompilerServices::Extension]
 static void PostCommandLineFlags(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ session, ... cli::array <System::String ^> ^ flagPrefixes);

Parameters

session
TelemetrySession

A TelemetrySession to post the event with.

flagPrefixes
String[]

The prefix(s) to identify a program's flag.

Exceptions

If session is null.

If no prefixes are specified, or all prefixes are null, empty or white space.

Applies to

PostCommandLineFlags(TelemetrySession, IEnumerable<String>, IDictionary<String,Object>)

Queues a telemetry event with command line flags information with additional properties to be posted to the server. Only command line flags (identified by the given prefixes) will be included.

public:
[System::Runtime::CompilerServices::Extension]
 static void PostCommandLineFlags(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ session, System::Collections::Generic::IEnumerable<System::String ^> ^ flagPrefixes, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ additionalProperties);

Parameters

session
TelemetrySession

A TelemetrySession to post the event with.

flagPrefixes
IEnumerable<String>

The prefix(s) to identify a program's flag.

additionalProperties
IDictionary<String,Object>

Optional additional properties to include with the event.

Exceptions

If session is null.

If no prefixes are specified, or all prefixes are null, empty or white space.

Applies to