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: 0x02000156 RID: 342
|
|
[Token(Token = "0x2000156")]
|
|
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: 0x0600083E RID: 2110
|
|
[Token(Token = "0x600083E")]
|
|
[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: 0x0600083F RID: 2111 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600083F")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
protected LicenseProvider()
|
|
{
|
|
}
|
|
}
|
|
}
|