35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Specifies a default interface to expose to COM. This class cannot be inherited.</summary>
|
|
// Token: 0x020002FE RID: 766
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|
[ComVisible(true)]
|
|
public sealed class ComDefaultInterfaceAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComDefaultInterfaceAttribute" /> class with the specified <see cref="T:System.Type" /> object as the default interface exposed to COM.</summary>
|
|
/// <param name="defaultInterface">A <see cref="T:System.Type" /> value indicating the default interface to expose to COM. </param>
|
|
// Token: 0x060021D3 RID: 8659 RVA: 0x00079164 File Offset: 0x00077364
|
|
public ComDefaultInterfaceAttribute(Type defaultInterface)
|
|
{
|
|
this._type = defaultInterface;
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Type" /> object that specifies the default interface to expose to COM.</summary>
|
|
/// <returns>The <see cref="T:System.Type" /> object that specifies the default interface to expose to COM.</returns>
|
|
// Token: 0x17000642 RID: 1602
|
|
// (get) Token: 0x060021D4 RID: 8660 RVA: 0x00079174 File Offset: 0x00077374
|
|
public Type Value
|
|
{
|
|
get
|
|
{
|
|
return this._type;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000CEB RID: 3307
|
|
private Type _type;
|
|
}
|
|
}
|