32 lines
1.6 KiB
C#
32 lines
1.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides the <see langword="abstract" /> base class for implementing a license provider.</summary>
|
|
// Token: 0x0200015A RID: 346
|
|
[Token(Token = "0x200015A")]
|
|
public abstract class LicenseProvider
|
|
{
|
|
/// <summary>When overridden in a derived class, gets a license for an instance or type of component, when given a context and whether the denial of a license throws an exception.</summary>
|
|
/// <param name="context">A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies where you can use the licensed object.</param>
|
|
/// <param name="type">A <see cref="T:System.Type" /> that represents the component requesting the license.</param>
|
|
/// <param name="instance">An object that is requesting the license.</param>
|
|
/// <param name="allowExceptions">
|
|
/// <see langword="true" /> if a <see cref="T:System.ComponentModel.LicenseException" /> should be thrown when the component cannot be granted a license; otherwise, <see langword="false" />.</param>
|
|
/// <returns>A valid <see cref="T:System.ComponentModel.License" />.</returns>
|
|
// Token: 0x06000854 RID: 2132
|
|
[Token(Token = "0x6000854")]
|
|
[Address(Slot = "4")]
|
|
public abstract License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions);
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.LicenseProvider" /> class.</summary>
|
|
// Token: 0x06000855 RID: 2133 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000855")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
protected LicenseProvider()
|
|
{
|
|
}
|
|
}
|
|
}
|