using System; using System.Reflection; using Cpp2IlInjected; 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: 0x02000155 RID: 341 [Token(Token = "0x2000155")] public class LicenseContext : IServiceProvider { /// 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: 0x17000188 RID: 392 // (get) Token: 0x06000829 RID: 2089 RVA: 0x00005058 File Offset: 0x00003258 [Token(Token = "0x17000188")] public virtual LicenseUsageMode UsageMode { [Token(Token = "0x6000829")] [Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "5")] get { return LicenseUsageMode.Runtime; } } /// When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly. /// A that represents the type of component. /// An with the license key. /// The for the specified type. This method returns unless you override it. // Token: 0x0600082A RID: 2090 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600082A")] [Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "6")] public virtual string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { return null; } /// Gets the requested service, if it is available. /// The type of service to retrieve. /// An instance of the service, or if the service cannot be found. // Token: 0x0600082B RID: 2091 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600082B")] [Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "7")] 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: 0x0600082C RID: 2092 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600082C")] [Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "8")] public virtual void SetSavedLicenseKey(Type type, string key) { } /// Initializes a new instance of the class. // Token: 0x0600082D RID: 2093 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600082D")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public LicenseContext() { } } }