35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Specifies the COM dispatch identifier (DISPID) of a method, field, or property.</summary>
|
|
// Token: 0x02000309 RID: 777
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event, Inherited = false)]
|
|
public sealed class DispIdAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the DispIdAttribute class with the specified DISPID.</summary>
|
|
/// <param name="dispId">The DISPID for the member. </param>
|
|
// Token: 0x060021ED RID: 8685 RVA: 0x000793A4 File Offset: 0x000775A4
|
|
public DispIdAttribute(int dispId)
|
|
{
|
|
this.id = dispId;
|
|
}
|
|
|
|
/// <summary>Gets the DISPID for the member.</summary>
|
|
/// <returns>The DISPID for the member.</returns>
|
|
// Token: 0x17000649 RID: 1609
|
|
// (get) Token: 0x060021EE RID: 8686 RVA: 0x000793B4 File Offset: 0x000775B4
|
|
public int Value
|
|
{
|
|
get
|
|
{
|
|
return this.id;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000D05 RID: 3333
|
|
private int id;
|
|
}
|
|
}
|