Share via


LoggingFields.AddDateTime Method

Definition

Overloads

AddDateTime(String, DateTime)

Adds a DateTime field with the specified field name.

AddDateTime(String, DateTime, LoggingFieldFormat)

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

AddDateTime(String, DateTime, LoggingFieldFormat, Int32)

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

AddDateTime(String, DateTime)

Adds a DateTime field with the specified field name.

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

Parameters

name
String

Platform::String

winrt::hstring

The name of the event field.

value
DateTime DateTimeOffset

The value of the event field.

Attributes

See also

Applies to

AddDateTime(String, DateTime, LoggingFieldFormat)

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

public:
 virtual void AddDateTime(Platform::String ^ name, DateTime value, LoggingFieldFormat format) = AddDateTime;
/// [Windows.Foundation.Metadata.Overload("AddDateTimeWithFormat")]
void AddDateTime(winrt::hstring const& name, DateTime const& value, LoggingFieldFormat const& format);
[Windows.Foundation.Metadata.Overload("AddDateTimeWithFormat")]
public void AddDateTime(string name, System.DateTimeOffset value, LoggingFieldFormat format);
function addDateTime(name, value, format)
Public Sub AddDateTime (name As String, value As DateTimeOffset, format As LoggingFieldFormat)

Parameters

name
String

Platform::String

winrt::hstring

The name of the event field.

value
DateTime DateTimeOffset

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

AddDateTime(String, DateTime, LoggingFieldFormat, Int32)

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

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

Parameters

name
String

Platform::String

winrt::hstring

The name of the event field.

value
DateTime DateTimeOffset

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