Files
2026-06-04 11:42:34 +02:00

51 lines
1.7 KiB
C#

using System;
namespace System.Diagnostics
{
/// <summary>Identifies the level type for a switch. </summary>
/// <filterpriority>1</filterpriority>
// Token: 0x020000F6 RID: 246
[global::System.MonoLimitation("This attribute is not considered in trace support.")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class SwitchLevelAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.SwitchLevelAttribute" /> class, specifying the type that determines whether a trace should be written.</summary>
/// <param name="switchLevelType">The <see cref="T:System.Type" /> that determines whether a trace should be written.</param>
// Token: 0x060008B1 RID: 2225 RVA: 0x00016F98 File Offset: 0x00015198
public SwitchLevelAttribute(Type switchLevelType)
{
if (switchLevelType == null)
{
throw new ArgumentNullException("switchLevelType");
}
this.type = switchLevelType;
}
/// <summary>Gets or sets the type that determines whether a trace should be written.</summary>
/// <returns>The <see cref="T:System.Type" /> that determines whether a trace should be written.</returns>
/// <exception cref="T:System.ArgumentNullException">The set operation failed because the value is null.</exception>
/// <filterpriority>2</filterpriority>
// Token: 0x1700024E RID: 590
// (get) Token: 0x060008B2 RID: 2226 RVA: 0x00016FB8 File Offset: 0x000151B8
// (set) Token: 0x060008B3 RID: 2227 RVA: 0x00016FC0 File Offset: 0x000151C0
public Type SwitchLevelType
{
get
{
return this.type;
}
set
{
if (value == null)
{
throw new ArgumentNullException("value");
}
this.type = value;
}
}
// Token: 0x040002C2 RID: 706
private Type type;
}
}