using System; using System.Reflection; namespace System.ComponentModel { /// Specifies when you can use a licensed object and provides a way of obtaining additional services needed to support licenses running within its domain. // Token: 0x0200009E RID: 158 public class LicenseContext : IServiceProvider { /// When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly. /// The for the specified type. This method returns null unless you override it. /// A that represents the type of component. /// An with the license key. // Token: 0x0600052D RID: 1325 RVA: 0x0000DCA8 File Offset: 0x0000BEA8 public virtual string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { return null; } /// Gets the requested service, if it is available. /// An instance of the service, or null if the service cannot be found. /// The type of service to retrieve. // Token: 0x0600052E RID: 1326 RVA: 0x0000DCAC File Offset: 0x0000BEAC public virtual object GetService(Type type) { return null; } /// When overridden in a derived class, sets a license key for the specified type. /// A that represents the component associated with the license key. /// The to save for the type of component. // Token: 0x0600052F RID: 1327 RVA: 0x0000DCB0 File Offset: 0x0000BEB0 public virtual void SetSavedLicenseKey(Type type, string key) { } /// When overridden in a derived class, gets a value that specifies when you can use a license. /// One of the values that specifies when you can use a license. The default is . // Token: 0x1700015A RID: 346 // (get) Token: 0x06000530 RID: 1328 RVA: 0x0000DCB4 File Offset: 0x0000BEB4 public virtual LicenseUsageMode UsageMode { get { return LicenseUsageMode.Runtime; } } } }