Share via


LoggingFields.AddInt16 方法

定义

重载

AddInt16(String, Int16)

添加具有指定字段名称的 16 位整数字段。

AddInt16(String, Int16, LoggingFieldFormat)

添加具有指定字段名称和格式的 16 位整数字段。

AddInt16(String, Int16, LoggingFieldFormat, Int32)

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

AddInt16(String, Int16)

添加具有指定字段名称的 16 位整数字段。

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Int16

short

事件字段的值。

属性

另请参阅

适用于

AddInt16(String, Int16, LoggingFieldFormat)

添加具有指定字段名称和格式的 16 位整数字段。

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Int16

short

事件字段的值。

format
LoggingFieldFormat

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

属性

另请参阅

适用于

AddInt16(String, Int16, LoggingFieldFormat, Int32)

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

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Int16

short

事件字段的值。

format
LoggingFieldFormat

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

tags
Int32

int

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

属性

另请参阅

适用于