Files
Aug2021-Cpp2IL-Dump/System/ComponentModel/LicenseContext.cs
T
2026-04-10 22:50:51 +02:00

69 lines
3.3 KiB
C#

using System;
using System.Reflection;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Specifies when you can use a licensed object and provides a way of obtaining additional services needed to support licenses running within its domain.</summary>
// Token: 0x02000155 RID: 341
[Token(Token = "0x2000155")]
public class LicenseContext : IServiceProvider
{
/// <summary>When overridden in a derived class, gets a value that specifies when you can use a license.</summary>
/// <returns>One of the <see cref="T:System.ComponentModel.LicenseUsageMode" /> values that specifies when you can use a license. The default is <see cref="F:System.ComponentModel.LicenseUsageMode.Runtime" />.</returns>
// 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;
}
}
/// <summary>When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly.</summary>
/// <param name="type">A <see cref="T:System.Type" /> that represents the type of component.</param>
/// <param name="resourceAssembly">An <see cref="T:System.Reflection.Assembly" /> with the license key.</param>
/// <returns>The <see cref="P:System.ComponentModel.License.LicenseKey" /> for the specified type. This method returns <see langword="null" /> unless you override it.</returns>
// 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;
}
/// <summary>Gets the requested service, if it is available.</summary>
/// <param name="type">The type of service to retrieve.</param>
/// <returns>An instance of the service, or <see langword="null" /> if the service cannot be found.</returns>
// 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;
}
/// <summary>When overridden in a derived class, sets a license key for the specified type.</summary>
/// <param name="type">A <see cref="T:System.Type" /> that represents the component associated with the license key.</param>
/// <param name="key">The <see cref="P:System.ComponentModel.License.LicenseKey" /> to save for the type of component.</param>
// 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)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.LicenseContext" /> class.</summary>
// Token: 0x0600082D RID: 2093 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600082D")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public LicenseContext()
{
}
}
}