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: 0x02000151 RID: 337
[Token(Token = "0x2000151")]
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: 0x17000184 RID: 388
// (get) Token: 0x06000813 RID: 2067 RVA: 0x00005040 File Offset: 0x00003240
[Token(Token = "0x17000184")]
public virtual LicenseUsageMode UsageMode
{
[Token(Token = "0x6000813")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x06000814 RID: 2068 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000814")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x06000815 RID: 2069 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000815")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x06000816 RID: 2070 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000816")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "8")]
public virtual void SetSavedLicenseKey(Type type, string key)
{
}
/// Initializes a new instance of the class.
// Token: 0x06000817 RID: 2071 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000817")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public LicenseContext()
{
}
}
}