From ef1e2ab328087c61a6878c1e84f4fc5d710aebce Mon Sep 17 00:00:00 2001 From: dotnet-bot Date: Fri, 30 Jan 2015 14:14:42 -0800 Subject: Initial commit to populate CoreCLR repo [tfs-changeset: 1407945] --- .../Eventing/TraceLogging/EventFieldFormat.cs | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EventFieldFormat.cs (limited to 'src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EventFieldFormat.cs') diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EventFieldFormat.cs b/src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EventFieldFormat.cs new file mode 100644 index 0000000000..0505d6af63 --- /dev/null +++ b/src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EventFieldFormat.cs @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +#if ES_BUILD_STANDALONE +namespace Microsoft.Diagnostics.Tracing +#else +namespace System.Diagnostics.Tracing +#endif +{ + /// + /// Provides a hint that may be used by an event listener when formatting + /// an event field for display. Note that the event listener may ignore the + /// hint if it does not recognize a particular combination of type and format. + /// Similar to TDH_OUTTYPE. + /// + public enum EventFieldFormat + { + /// + /// Field receives default formatting based on the field's underlying type. + /// + Default = 0, +#if false + /// + /// Field should not be displayed. + /// + NoPrint = 1, +#endif + /// + /// Field should be formatted as character or string data. + /// Typically applied to 8-bit or 16-bit integers. + /// This is the default format for String and Char types. + /// + String = 2, + + /// + /// Field should be formatted as boolean data. Typically applied to 8-bit + /// or 32-bit integers. This is the default format for the Boolean type. + /// + Boolean = 3, + + /// + /// Field should be formatted as hexadecimal data. Typically applied to + /// integer types. + /// + Hexadecimal = 4, + +#if false + /// + /// Field should be formatted as a process identifier. Typically applied to + /// 32-bit integer types. + /// + ProcessId = 5, + + /// + /// Field should be formatted as a thread identifier. Typically applied to + /// 32-bit integer types. + /// + ThreadId = 6, + + /// + /// Field should be formatted as an Internet port. Typically applied to 16-bit integer + /// types. + /// + Port = 7, + /// + /// Field should be formatted as an Internet Protocol v4 address. Typically applied to + /// 32-bit integer types. + /// + Ipv4Address = 8, + + /// + /// Field should be formatted as an Internet Protocol v6 address. Typically applied to + /// byte[] types. + /// + Ipv6Address = 9, + /// + /// Field should be formatted as a SOCKADDR. Typically applied to byte[] types. + /// + SocketAddress = 10, +#endif + /// + /// Field should be formatted as XML string data. Typically applied to + /// strings or arrays of 8-bit or 16-bit integers. + /// + Xml = 11, + + /// + /// Field should be formatted as JSON string data. Typically applied to + /// strings or arrays of 8-bit or 16-bit integers. + /// + Json = 12, +#if false + /// + /// Field should be formatted as a Win32 error code. Typically applied to + /// 32-bit integer types. + /// + Win32Error = 13, + + /// + /// Field should be formatted as an NTSTATUS code. Typically applied to + /// 32-bit integer types. + /// + NTStatus = 14, +#endif + /// + /// Field should be formatted as an HRESULT code. Typically applied to + /// 32-bit integer types. + /// + HResult = 15, +#if false + /// + /// Field should be formatted as a FILETIME. Typically applied to 64-bit + /// integer types. This is the default format for DateTime types. + /// + FileTime = 16, + /// + /// When applied to a numeric type, indicates that the type should be formatted + /// as a signed integer. This is the default format for signed integer types. + /// + Signed = 17, + + /// + /// When applied to a numeric type, indicates that the type should be formatted + /// as an unsigned integer. This is the default format for unsigned integer types. + /// + Unsigned = 18, +#endif + } +} -- cgit v1.2.3