133 references to TraceLoggingDataType
mscorlib (133)
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (8)
44
TraceLoggingDataType
type,
63
TraceLoggingDataType
type,
82
TraceLoggingDataType
type,
98
TraceLoggingDataType
dataType,
125
if (coreType == (int)
TraceLoggingDataType
.Nil)
129
if (coreType == (int)
TraceLoggingDataType
.Binary)
134
if (coreType == (int)
TraceLoggingDataType
.Utf16String ||
135
coreType == (int)
TraceLoggingDataType
.MbcsString)
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (46)
53
collector.AddScalar(name, Statics.Format8(format,
TraceLoggingDataType
.Boolean8));
73
collector.AddScalar(name, Statics.Format8(format,
TraceLoggingDataType
.UInt8));
93
collector.AddScalar(name, Statics.Format8(format,
TraceLoggingDataType
.Int8));
113
collector.AddScalar(name, Statics.Format16(format,
TraceLoggingDataType
.Int16));
133
collector.AddScalar(name, Statics.Format16(format,
TraceLoggingDataType
.UInt16));
153
collector.AddScalar(name, Statics.Format32(format,
TraceLoggingDataType
.Int32));
173
collector.AddScalar(name, Statics.Format32(format,
TraceLoggingDataType
.UInt32));
193
collector.AddScalar(name, Statics.Format64(format,
TraceLoggingDataType
.Int64));
213
collector.AddScalar(name, Statics.Format64(format,
TraceLoggingDataType
.UInt64));
273
collector.AddScalar(name, Statics.Format64(format,
TraceLoggingDataType
.Double));
293
collector.AddScalar(name, Statics.Format32(format,
TraceLoggingDataType
.Float));
313
collector.AddScalar(name, Statics.Format16(format,
TraceLoggingDataType
.Char16));
337
collector.AddArray(name, Statics.Format8(format,
TraceLoggingDataType
.Boolean8));
360
collector.AddBinary(name, Statics.MakeDataType(
TraceLoggingDataType
.Binary, format));
363
collector.AddBinary(name,
TraceLoggingDataType
.CountedMbcsString);
366
collector.AddBinary(name,
TraceLoggingDataType
.CountedMbcsXml);
369
collector.AddBinary(name,
TraceLoggingDataType
.CountedMbcsJson);
372
collector.AddArray(name,
TraceLoggingDataType
.Boolean8);
375
collector.AddArray(name,
TraceLoggingDataType
.HexInt8);
405
collector.AddArray(name, Statics.Format8(format,
TraceLoggingDataType
.Int8));
425
collector.AddArray(name, Statics.Format16(format,
TraceLoggingDataType
.Int16));
445
collector.AddArray(name, Statics.Format16(format,
TraceLoggingDataType
.UInt16));
465
collector.AddArray(name, Statics.Format32(format,
TraceLoggingDataType
.Int32));
485
collector.AddArray(name, Statics.Format32(format,
TraceLoggingDataType
.UInt32));
505
collector.AddArray(name, Statics.Format64(format,
TraceLoggingDataType
.Int64));
525
collector.AddArray(name, Statics.Format64(format,
TraceLoggingDataType
.UInt64));
585
collector.AddArray(name, Statics.Format16(format,
TraceLoggingDataType
.Char16));
605
collector.AddArray(name, Statics.Format64(format,
TraceLoggingDataType
.Double));
625
collector.AddArray(name, Statics.Format32(format,
TraceLoggingDataType
.Float));
646
collector.AddScalar(name, Statics.Format8(format,
TraceLoggingDataType
.UInt8));
668
collector.AddScalar(name, Statics.Format8(format,
TraceLoggingDataType
.Int8));
690
collector.AddScalar(name, Statics.Format16(format,
TraceLoggingDataType
.Int16));
712
collector.AddScalar(name, Statics.Format16(format,
TraceLoggingDataType
.UInt16));
734
collector.AddScalar(name, Statics.Format32(format,
TraceLoggingDataType
.Int32));
756
collector.AddScalar(name, Statics.Format32(format,
TraceLoggingDataType
.UInt32));
778
collector.AddScalar(name, Statics.Format64(format,
TraceLoggingDataType
.Int64));
800
collector.AddScalar(name, Statics.Format64(format,
TraceLoggingDataType
.UInt64));
829
collector.AddBinary(name, Statics.MakeDataType(
TraceLoggingDataType
.CountedUtf16String, format));
858
collector.AddScalar(name, Statics.MakeDataType(
TraceLoggingDataType
.Guid, format));
878
collector.AddArray(name, Statics.MakeDataType(
TraceLoggingDataType
.Guid, format));
898
collector.AddScalar(name, Statics.MakeDataType(
TraceLoggingDataType
.FileTime, format));
917
group.AddScalar("Ticks", Statics.MakeDataType(
TraceLoggingDataType
.FileTime, format));
918
group.AddScalar("Offset",
TraceLoggingDataType
.Int64);
940
collector.AddScalar(name, Statics.MakeDataType(
TraceLoggingDataType
.Int64, format));
960
collector.AddScalar(name, Statics.MakeDataType(
TraceLoggingDataType
.Double, format));
1037
group.AddScalar("HasValue",
TraceLoggingDataType
.Boolean8);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (31)
33
public static readonly
TraceLoggingDataType
IntPtrType = IntPtr.Size == 8
34
?
TraceLoggingDataType
.Int64
35
:
TraceLoggingDataType
.Int32;
36
public static readonly
TraceLoggingDataType
UIntPtrType = IntPtr.Size == 8
37
?
TraceLoggingDataType
.UInt64
38
:
TraceLoggingDataType
.UInt32;
39
public static readonly
TraceLoggingDataType
HexIntPtrType = IntPtr.Size == 8
40
?
TraceLoggingDataType
.HexInt64
41
:
TraceLoggingDataType
.HexInt32;
181
public static
TraceLoggingDataType
MakeDataType(
182
TraceLoggingDataType
baseType,
185
return (
TraceLoggingDataType
)(((int)baseType & 0x1f) | ((int)format << 8));
194
public static
TraceLoggingDataType
Format8(
196
TraceLoggingDataType
native)
203
return
TraceLoggingDataType
.Char8;
205
return
TraceLoggingDataType
.Boolean8;
207
return
TraceLoggingDataType
.HexInt8;
225
public static
TraceLoggingDataType
Format16(
227
TraceLoggingDataType
native)
234
return
TraceLoggingDataType
.Char16;
236
return
TraceLoggingDataType
.HexInt16;
256
public static
TraceLoggingDataType
Format32(
258
TraceLoggingDataType
native)
265
return
TraceLoggingDataType
.Boolean32;
267
return
TraceLoggingDataType
.HexInt32;
281
return
TraceLoggingDataType
.HResult;
299
public static
TraceLoggingDataType
Format64(
301
TraceLoggingDataType
native)
308
return
TraceLoggingDataType
.HexInt64;
328
public static
TraceLoggingDataType
FormatPtr(
330
TraceLoggingDataType
native)
System\Diagnostics\Eventing\TraceLogging\TraceLoggingMetadataCollector.cs (48)
101
TraceLoggingDataType
.Struct,
121
public void AddScalar(string name,
TraceLoggingDataType
type)
124
switch ((
TraceLoggingDataType
)((int)type & Statics.InTypeMask))
126
case
TraceLoggingDataType
.Int8:
127
case
TraceLoggingDataType
.UInt8:
128
case
TraceLoggingDataType
.Char8:
131
case
TraceLoggingDataType
.Int16:
132
case
TraceLoggingDataType
.UInt16:
133
case
TraceLoggingDataType
.Char16:
136
case
TraceLoggingDataType
.Int32:
137
case
TraceLoggingDataType
.UInt32:
138
case
TraceLoggingDataType
.HexInt32:
139
case
TraceLoggingDataType
.Float:
140
case
TraceLoggingDataType
.Boolean32:
143
case
TraceLoggingDataType
.Int64:
144
case
TraceLoggingDataType
.UInt64:
145
case
TraceLoggingDataType
.HexInt64:
146
case
TraceLoggingDataType
.Double:
147
case
TraceLoggingDataType
.FileTime:
150
case
TraceLoggingDataType
.Guid:
151
case
TraceLoggingDataType
.SystemTime:
173
public void AddBinary(string name,
TraceLoggingDataType
type)
175
switch ((
TraceLoggingDataType
)((int)type & Statics.InTypeMask))
177
case
TraceLoggingDataType
.Binary:
178
case
TraceLoggingDataType
.CountedMbcsString:
179
case
TraceLoggingDataType
.CountedUtf16String:
201
public void AddArray(string name,
TraceLoggingDataType
type)
203
switch ((
TraceLoggingDataType
)((int)type & Statics.InTypeMask))
205
case
TraceLoggingDataType
.Utf16String:
206
case
TraceLoggingDataType
.MbcsString:
207
case
TraceLoggingDataType
.Int8:
208
case
TraceLoggingDataType
.UInt8:
209
case
TraceLoggingDataType
.Int16:
210
case
TraceLoggingDataType
.UInt16:
211
case
TraceLoggingDataType
.Int32:
212
case
TraceLoggingDataType
.UInt32:
213
case
TraceLoggingDataType
.Int64:
214
case
TraceLoggingDataType
.UInt64:
215
case
TraceLoggingDataType
.Float:
216
case
TraceLoggingDataType
.Double:
217
case
TraceLoggingDataType
.Boolean32:
218
case
TraceLoggingDataType
.Guid:
219
case
TraceLoggingDataType
.FileTime:
220
case
TraceLoggingDataType
.HexInt32:
221
case
TraceLoggingDataType
.HexInt64:
222
case
TraceLoggingDataType
.Char16:
223
case
TraceLoggingDataType
.Char8:
269
public void AddCustom(string name,
TraceLoggingDataType
type, byte[] metadata)