using System; using System.Runtime.Serialization; namespace System.ComponentModel { /// Represents the exception thrown when a component cannot be granted a license. // Token: 0x0200009F RID: 159 [Serializable] public class LicenseException : SystemException { /// Initializes a new instance of the class for the type of component that was denied a license. /// A that represents the type of component that was not granted a license. // Token: 0x06000531 RID: 1329 RVA: 0x0000DCB8 File Offset: 0x0000BEB8 public LicenseException(Type type) : this(type, null) { } /// Initializes a new instance of the class for the type and the instance of the component that was denied a license. /// A that represents the type of component that was not granted a license. /// The instance of the component that was not granted a license. // Token: 0x06000532 RID: 1330 RVA: 0x0000DCC4 File Offset: 0x0000BEC4 public LicenseException(Type type, object instance) { this.type = type; } /// Initializes a new instance of the class for the type and the instance of the component that was denied a license, along with a message to display. /// A that represents the type of component that was not granted a license. /// The instance of the component that was not granted a license. /// The exception message to display. // Token: 0x06000533 RID: 1331 RVA: 0x0000DCD4 File Offset: 0x0000BED4 public LicenseException(Type type, object instance, string message) : this(type, instance, message, null) { } /// Initializes a new instance of the class for the type and the instance of the component that was denied a license, along with a message to display and the original exception thrown. /// A that represents the type of component that was not granted a license. /// The instance of the component that was not granted a license. /// The exception message to display. /// An that represents the original exception. // Token: 0x06000534 RID: 1332 RVA: 0x0000DCE0 File Offset: 0x0000BEE0 public LicenseException(Type type, object instance, string message, Exception innerException) : base(message, innerException) { this.type = type; } /// Initializes a new instance of the class with the given and . /// The to be used for deserialization. /// The destination to be used for deserialization. // Token: 0x06000535 RID: 1333 RVA: 0x0000DCF4 File Offset: 0x0000BEF4 protected LicenseException(SerializationInfo info, StreamingContext context) : base(info, context) { this.type = (Type)info.GetValue("LicensedType", typeof(Type)); } /// Sets the with information about the exception. /// The to be used for deserialization. /// The destination to be used for deserialization. /// /// is null. // Token: 0x06000536 RID: 1334 RVA: 0x0000DD2C File Offset: 0x0000BF2C public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException("info"); } info.AddValue("LicensedType", this.type); base.GetObjectData(info, context); } /// Gets the type of the component that was not granted a license. /// A that represents the type of component that was not granted a license. // Token: 0x1700015B RID: 347 // (get) Token: 0x06000537 RID: 1335 RVA: 0x0000DD64 File Offset: 0x0000BF64 public Type LicensedType { get { return this.type; } } // Token: 0x04000181 RID: 385 private Type type; } }