Share via


LoggingFields.AddUInt8 方法

定义

重载

AddUInt8(String, Byte)

添加具有指定字段名称的 8 位无符号整数字段。

AddUInt8(String, Byte, LoggingFieldFormat)

添加具有指定字段名称和格式的 8 位无符号整数字段。

AddUInt8(String, Byte, LoggingFieldFormat, Int32)

添加具有指定字段名称、格式和标记的 8 位无符号整数字段。

AddUInt8(String, Byte)

添加具有指定字段名称的 8 位无符号整数字段。

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Byte

byte

事件字段的值。

属性

另请参阅

适用于

AddUInt8(String, Byte, LoggingFieldFormat)

添加具有指定字段名称和格式的 8 位无符号整数字段。

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Byte

byte

事件字段的值。

format
LoggingFieldFormat

事件字段的格式。 指定可由 Windows 事件跟踪 (ETW) 工具使用的可选格式设置提示。

属性

另请参阅

适用于

AddUInt8(String, Byte, LoggingFieldFormat, Int32)

添加具有指定字段名称、格式和标记的 8 位无符号整数字段。

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Byte

byte

事件字段的值。

format
LoggingFieldFormat

事件字段的格式。 指定可由 Windows 事件跟踪 (ETW) 工具使用的可选格式设置提示。

tags
Int32

int

事件字段的用户定义标记。 指定最多 28 位用户定义的字段处理元数据供自定义 ETW 处理工具使用。 前四位是保留位,并且必须设置为零 (0) 。

属性

另请参阅

适用于