35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Indicates the COM alias for a parameter or field type.</summary>
|
|
// Token: 0x020002FB RID: 763
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = false)]
|
|
[ComVisible(true)]
|
|
public sealed class ComAliasNameAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComAliasNameAttribute" /> class with the alias for the attributed field or parameter.</summary>
|
|
/// <param name="alias">The alias for the field or parameter as found in the type library when it was imported. </param>
|
|
// Token: 0x060021CB RID: 8651 RVA: 0x000790FC File Offset: 0x000772FC
|
|
public ComAliasNameAttribute(string alias)
|
|
{
|
|
this.val = alias;
|
|
}
|
|
|
|
/// <summary>Gets the alias for the field or parameter as found in the type library when it was imported.</summary>
|
|
/// <returns>The alias for the field or parameter as found in the type library when it was imported.</returns>
|
|
// Token: 0x1700063D RID: 1597
|
|
// (get) Token: 0x060021CC RID: 8652 RVA: 0x0007910C File Offset: 0x0007730C
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.val;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000CE6 RID: 3302
|
|
private string val;
|
|
}
|
|
}
|