Share via


LoggingFields.AddInt32 方法

定义

重载

AddInt32(String, Int32, LoggingFieldFormat, Int32)

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

AddInt32(String, Int32, LoggingFieldFormat)

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

AddInt32(String, Int32)

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

AddInt32(String, Int32, LoggingFieldFormat, Int32)

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

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Int32

int

事件字段的数组值。

format
LoggingFieldFormat

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

tags
Int32

int

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

属性

另请参阅

适用于

AddInt32(String, Int32, LoggingFieldFormat)

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

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Int32

int

事件字段的值。

format
LoggingFieldFormat

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

属性

另请参阅

适用于

AddInt32(String, Int32)

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

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

参数

name
String

Platform::String

winrt::hstring

事件字段的名称。

value
Int32

int

事件字段的值。

属性

另请参阅

适用于