Dela via


LoggingFields.AddBoolean Method

Definition

Overloads

AddBoolean(String, Boolean)

Adds a boolean field with the specified field name.

AddBoolean(String, Boolean, LoggingFieldFormat)

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

AddBoolean(String, Boolean, LoggingFieldFormat, Int32)

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

AddBoolean(String, Boolean)

Adds a boolean field with the specified field name.

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

Parameters

name
String

Platform::String

winrt::hstring

Name of the event field.

value
Boolean

bool

Value of the event field.

Attributes

See also

Applies to

AddBoolean(String, Boolean, LoggingFieldFormat)

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

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

Parameters

name
String

Platform::String

winrt::hstring

The name of the event field.

value
Boolean

bool

The value of 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

AddBoolean(String, Boolean, LoggingFieldFormat, Int32)

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

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

Parameters

name
String

Platform::String

winrt::hstring

The name of the event field.

value
Boolean

bool

The value of 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