52 lines
2.0 KiB
C#
52 lines
2.0 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Identifies the source interface and the class that implements the methods of the event interface that is generated when a coclass is imported from a COM type library.</summary>
|
|
// Token: 0x020002FF RID: 767
|
|
[AttributeUsage(AttributeTargets.Interface, Inherited = false)]
|
|
[ComVisible(true)]
|
|
public sealed class ComEventInterfaceAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComEventInterfaceAttribute" /> class with the source interface and event provider class.</summary>
|
|
/// <param name="SourceInterface">A <see cref="T:System.Type" /> that contains the original source interface from the type library. COM uses this interface to call back to the managed class. </param>
|
|
/// <param name="EventProvider">A <see cref="T:System.Type" /> that contains the class that implements the methods of the event interface. </param>
|
|
// Token: 0x060021D5 RID: 8661 RVA: 0x0007917C File Offset: 0x0007737C
|
|
public ComEventInterfaceAttribute(Type SourceInterface, Type EventProvider)
|
|
{
|
|
this.si = SourceInterface;
|
|
this.ep = EventProvider;
|
|
}
|
|
|
|
/// <summary>Gets the class that implements the methods of the event interface.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> that contains the class that implements the methods of the event interface.</returns>
|
|
// Token: 0x17000643 RID: 1603
|
|
// (get) Token: 0x060021D6 RID: 8662 RVA: 0x00079194 File Offset: 0x00077394
|
|
public Type EventProvider
|
|
{
|
|
get
|
|
{
|
|
return this.ep;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the original source interface from the type library.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> containing the source interface.</returns>
|
|
// Token: 0x17000644 RID: 1604
|
|
// (get) Token: 0x060021D7 RID: 8663 RVA: 0x0007919C File Offset: 0x0007739C
|
|
public Type SourceInterface
|
|
{
|
|
get
|
|
{
|
|
return this.si;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000CEC RID: 3308
|
|
private Type si;
|
|
|
|
// Token: 0x04000CED RID: 3309
|
|
private Type ep;
|
|
}
|
|
}
|