LoggingFields.AddSingle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddSingle(String, Single) |
Adds a Single field with the specified field name. |
AddSingle(String, Single, LoggingFieldFormat) |
Adds a Single field with the specified field name and format. |
AddSingle(String, Single, LoggingFieldFormat, Int32) |
Adds a Single field with the specified field name, format, and tags. |
AddSingle(String, Single)
public:
virtual void AddSingle(Platform::String ^ name, float value) = AddSingle;
/// [Windows.Foundation.Metadata.Overload("AddSingle")]
void AddSingle(winrt::hstring const& name, float const& value);
[Windows.Foundation.Metadata.Overload("AddSingle")]
public void AddSingle(string name, float value);
function addSingle(name, value)
Public Sub AddSingle (name As String, value As Single)
Parameters
- name
-
String
Platform::String
winrt::hstring
Name of the event field.
- value
-
Single
float
The value for the event field.
- Attributes
See also
Applies to
AddSingle(String, Single, LoggingFieldFormat)
public:
virtual void AddSingle(Platform::String ^ name, float value, LoggingFieldFormat format) = AddSingle;
/// [Windows.Foundation.Metadata.Overload("AddSingleWithFormat")]
void AddSingle(winrt::hstring const& name, float const& value, LoggingFieldFormat const& format);
[Windows.Foundation.Metadata.Overload("AddSingleWithFormat")]
public void AddSingle(string name, float value, LoggingFieldFormat format);
function addSingle(name, value, format)
Public Sub AddSingle (name As String, value As Single, format As LoggingFieldFormat)
Parameters
- name
-
String
Platform::String
winrt::hstring
Name of the event field.
- value
-
Single
float
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
AddSingle(String, Single, LoggingFieldFormat, Int32)
public:
virtual void AddSingle(Platform::String ^ name, float value, LoggingFieldFormat format, int tags) = AddSingle;
/// [Windows.Foundation.Metadata.Overload("AddSingleWithFormatAndTags")]
void AddSingle(winrt::hstring const& name, float const& value, LoggingFieldFormat const& format, int const& tags);
[Windows.Foundation.Metadata.Overload("AddSingleWithFormatAndTags")]
public void AddSingle(string name, float value, LoggingFieldFormat format, int tags);
function addSingle(name, value, format, tags)
Public Sub AddSingle (name As String, value As Single, format As LoggingFieldFormat, tags As Integer)
Parameters
- name
-
String
Platform::String
winrt::hstring
Name of the event field.
- value
-
Single
float
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