73 lines
4.0 KiB
C#
73 lines
4.0 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Identifies a list of interfaces that are exposed as COM event sources for the attributed class.</summary>
|
|
// Token: 0x02000303 RID: 771
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
|
public sealed class ComSourceInterfacesAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComSourceInterfacesAttribute" /> class with the name of the event source interface.</summary>
|
|
/// <param name="sourceInterfaces">A null-delimited list of fully qualified event source interface names. </param>
|
|
// Token: 0x060021D9 RID: 8665 RVA: 0x000791AC File Offset: 0x000773AC
|
|
public ComSourceInterfacesAttribute(string sourceInterfaces)
|
|
{
|
|
this.internalValue = sourceInterfaces;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComSourceInterfacesAttribute" /> class with the type to use as a source interface.</summary>
|
|
/// <param name="sourceInterface">The <see cref="T:System.Type" /> of the source interface. </param>
|
|
// Token: 0x060021DA RID: 8666 RVA: 0x000791BC File Offset: 0x000773BC
|
|
public ComSourceInterfacesAttribute(Type sourceInterface)
|
|
{
|
|
this.internalValue = sourceInterface.ToString();
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComSourceInterfacesAttribute" /> class with the types to use as source interfaces.</summary>
|
|
/// <param name="sourceInterface1">The <see cref="T:System.Type" /> of the default source interface. </param>
|
|
/// <param name="sourceInterface2">The <see cref="T:System.Type" /> of a source interface. </param>
|
|
// Token: 0x060021DB RID: 8667 RVA: 0x000791D0 File Offset: 0x000773D0
|
|
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2)
|
|
{
|
|
this.internalValue = sourceInterface1.ToString() + sourceInterface2.ToString();
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.</summary>
|
|
/// <param name="sourceInterface1">The <see cref="T:System.Type" /> of the default source interface. </param>
|
|
/// <param name="sourceInterface2">The <see cref="T:System.Type" /> of a source interface. </param>
|
|
/// <param name="sourceInterface3">The <see cref="T:System.Type" /> of a source interface. </param>
|
|
// Token: 0x060021DC RID: 8668 RVA: 0x000791FC File Offset: 0x000773FC
|
|
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3)
|
|
{
|
|
this.internalValue = sourceInterface1.ToString() + sourceInterface2.ToString() + sourceInterface3.ToString();
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ComSourceInterfacesAttribute" /> class with the types to use as source interfaces.</summary>
|
|
/// <param name="sourceInterface1">The <see cref="T:System.Type" /> of the default source interface. </param>
|
|
/// <param name="sourceInterface2">The <see cref="T:System.Type" /> of a source interface. </param>
|
|
/// <param name="sourceInterface3">The <see cref="T:System.Type" /> of a source interface. </param>
|
|
/// <param name="sourceInterface4">The <see cref="T:System.Type" /> of a source interface. </param>
|
|
// Token: 0x060021DD RID: 8669 RVA: 0x0007922C File Offset: 0x0007742C
|
|
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3, Type sourceInterface4)
|
|
{
|
|
this.internalValue = sourceInterface1.ToString() + sourceInterface2.ToString() + sourceInterface3.ToString() + sourceInterface4.ToString();
|
|
}
|
|
|
|
/// <summary>Gets the fully qualified name of the event source interface.</summary>
|
|
/// <returns>The fully qualified name of the event source interface.</returns>
|
|
// Token: 0x17000645 RID: 1605
|
|
// (get) Token: 0x060021DE RID: 8670 RVA: 0x00079264 File Offset: 0x00077464
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.internalValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000CF6 RID: 3318
|
|
private string internalValue;
|
|
}
|
|
}
|