Jaa


LoggingFields.AddString Method

Definition

Overloads

AddString(String, String)

Adds a String field with the specified field name.

AddString(String, String, LoggingFieldFormat)

Adds a String field with the specified field name and format.

AddString(String, String, LoggingFieldFormat, Int32)

Adds a String field with the specified field name, format, and tags.

AddString(String, String)

Adds a String field with the specified field name.

public:
 virtual void AddString(Platform::String ^ name, Platform::String ^ value) = AddString;
/// [Windows.Foundation.Metadata.Overload("AddString")]
void AddString(winrt::hstring const& name, winrt::hstring const& value);
[Windows.Foundation.Metadata.Overload("AddString")]
public void AddString(string name, string value);
function addString(name, value)
Public Sub AddString (name As String, value As String)

Parameters

name
String

Platform::String

winrt::hstring

Name of the event field.

value
String

Platform::String

winrt::hstring

The value for the event field.

Attributes

See also

Applies to

AddString(String, String, LoggingFieldFormat)

Adds a String field with the specified field name and format.

public:
 virtual void AddString(Platform::String ^ name, Platform::String ^ value, LoggingFieldFormat format) = AddString;
/// [Windows.Foundation.Metadata.Overload("AddStringWithFormat")]
void AddString(winrt::hstring const& name, winrt::hstring const& value, LoggingFieldFormat const& format);
[Windows.Foundation.Metadata.Overload("AddStringWithFormat")]
public void AddString(string name, string value, LoggingFieldFormat format);
function addString(name, value, format)
Public Sub AddString (name As String, value As String, format As LoggingFieldFormat)

Parameters

name
String

Platform::String

winrt::hstring

Name of the event field.

value
String

Platform::String

winrt::hstring

The value for the event field.

format
LoggingFieldFormat

The format of the event field. Specifies an optional formatting hint that may be used by Event Tracing for Windows (ETW) tools.

Attributes

See also

Applies to

AddString(String, String, LoggingFieldFormat, Int32)

Adds a String field with the specified field name, format, and tags.

public:
 virtual void AddString(Platform::String ^ name, Platform::String ^ value, LoggingFieldFormat format, int tags) = AddString;
/// [Windows.Foundation.Metadata.Overload("AddStringWithFormatAndTags")]
void AddString(winrt::hstring const& name, winrt::hstring const& value, LoggingFieldFormat const& format, int const& tags);
[Windows.Foundation.Metadata.Overload("AddStringWithFormatAndTags")]
public void AddString(string name, string value, LoggingFieldFormat format, int tags);
function addString(name, value, format, tags)
Public Sub AddString (name As String, value As String, format As LoggingFieldFormat, tags As Integer)

Parameters

name
String

Platform::String

winrt::hstring

Name of the event field.

value
String

Platform::String

winrt::hstring

The value for the event field.

format
LoggingFieldFormat

The format of the event field. Specifies an optional formatting hint that may be used by Event Tracing for Windows (ETW) tools.

tags
Int32

int

The user-defined tag for the event field. Specifies up to twenty-eight bits of user-defined field processing metadata for use by a custom ETW processing tool. The top four bits are reserved and must be set to zero (0).

Attributes

See also

Applies to