Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EventDescriptor() [2/2]

System.Diagnostics.Tracing.EventDescriptor.EventDescriptor ( int id,
byte version,
byte channel,
byte level,
byte opcode,
int task,
long keywords )
inline

Definition at line 59 of file EventDescriptor.cs.

60 {
61 if (id < 0)
62 {
63 throw new ArgumentOutOfRangeException("id", SR.ArgumentOutOfRange_NeedNonNegNum);
64 }
65 if (id > 65535)
66 {
67 throw new ArgumentOutOfRangeException("id", SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue));
68 }
70 m_id = (ushort)id;
71 m_version = version;
72 m_channel = channel;
73 m_level = level;
74 m_opcode = opcode;
75 m_keywords = keywords;
76 if (task < 0)
77 {
78 throw new ArgumentOutOfRangeException("task", SR.ArgumentOutOfRange_NeedNonNegNum);
79 }
80 if (task > 65535)
81 {
82 throw new ArgumentOutOfRangeException("task", SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue));
83 }
84 m_task = (ushort)task;
85 }

References System.SR.ArgumentOutOfRange_NeedNonNegNum, System.SR.ArgumentOutOfRange_NeedValidId, System.SR.Format(), System.Diagnostics.Tracing.EventDescriptor.m_channel, System.Diagnostics.Tracing.EventDescriptor.m_id, System.Diagnostics.Tracing.EventDescriptor.m_keywords, System.Diagnostics.Tracing.EventDescriptor.m_level, System.Diagnostics.Tracing.EventDescriptor.m_opcode, System.Diagnostics.Tracing.EventDescriptor.m_task, System.Diagnostics.Tracing.EventDescriptor.m_traceloggingId, System.Diagnostics.Tracing.EventDescriptor.m_version, and System.task.