共用方式為


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);
public static void PostCommandLineFlags (this Microsoft.VisualStudio.Telemetry.TelemetrySession session, params string[] flagPrefixes);
static member PostCommandLineFlags : Microsoft.VisualStudio.Telemetry.TelemetrySession * string[] -> unit
<Extension()>
Public Sub PostCommandLineFlags (session As TelemetrySession, ParamArray flagPrefixes As String())

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);
public static void PostCommandLineFlags (this Microsoft.VisualStudio.Telemetry.TelemetrySession session, System.Collections.Generic.IEnumerable<string> flagPrefixes, System.Collections.Generic.IDictionary<string,object> additionalProperties);
static member PostCommandLineFlags : Microsoft.VisualStudio.Telemetry.TelemetrySession * seq<string> * System.Collections.Generic.IDictionary<string, obj> -> unit
<Extension()>
Public Sub PostCommandLineFlags (session As TelemetrySession, flagPrefixes As IEnumerable(Of String), additionalProperties As IDictionary(Of String, Object))

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