69 lines
3.3 KiB
C#
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: 0x02000151 RID: 337
|
|
[Token(Token = "0x2000151")]
|
|
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: 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;
|
|
}
|
|
}
|
|
|
|
/// <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: 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;
|
|
}
|
|
|
|
/// <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: 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;
|
|
}
|
|
|
|
/// <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: 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)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.LicenseContext" /> class.</summary>
|
|
// Token: 0x06000817 RID: 2071 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000817")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public LicenseContext()
|
|
{
|
|
}
|
|
}
|
|
}
|