mscorlib(4.0.0.0) API with additions
_EventInfo.cs
1 using System.Reflection;
2 
4 {
6  [Guid("9DE59C64-D889-35A1-B897-587D74469E5B")]
7  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
8  [CLSCompliant(false)]
9  [TypeLibImportClass(typeof(EventInfo))]
10  [ComVisible(true)]
11  public interface _EventInfo
12  {
16  {
17  get;
18  }
19 
22  string Name
23  {
24  get;
25  }
26 
30  {
31  get;
32  }
33 
37  {
38  get;
39  }
40 
44  {
45  get;
46  }
47 
51  {
52  get;
53  }
54 
58  bool IsSpecialName
59  {
60  get;
61  }
62 
66  bool IsMulticast
67  {
68  get;
69  }
70 
73  void GetTypeInfoCount(out uint pcTInfo);
74 
79  void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
80 
87  void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
88 
98  void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
99 
102  new string ToString();
103 
108  new bool Equals(object other);
109 
112  new int GetHashCode();
113 
116  new Type GetType();
117 
123  object[] GetCustomAttributes(Type attributeType, bool inherit);
124 
129  object[] GetCustomAttributes(bool inherit);
130 
137  bool IsDefined(Type attributeType, bool inherit);
138 
143  MethodInfo GetAddMethod(bool nonPublic);
144 
149  MethodInfo GetRemoveMethod(bool nonPublic);
150 
155  MethodInfo GetRaiseMethod(bool nonPublic);
156 
160 
164 
168 
172  void AddEventHandler(object target, Delegate handler);
173 
177  void RemoveEventHandler(object target, Delegate handler);
178  }
179 }
object [] GetCustomAttributes(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
bool IsSpecialName
Provides COM objects with version-independent access to the P:System.Reflection.EventInfo....
Definition: _EventInfo.cs:59
void AddEventHandler(object target, Delegate handler)
Provides COM objects with version-independent access to the M:System.Reflection.EventInfo....
Type EventHandlerType
Provides COM objects with version-independent access to the P:System.Reflection.EventInfo....
Definition: _EventInfo.cs:51
Discovers the attributes of a method and provides access to method metadata.
Definition: MethodInfo.cs:13
Type DeclaringType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _EventInfo.cs:30
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
Provides access to properties and methods exposed by an object.
new bool Equals(object other)
Provides COM objects with version-independent access to the M:System.Object.Equals(System....
Definition: __Canon.cs:3
void RemoveEventHandler(object target, Delegate handler)
Provides COM objects with version-independent access to the M:System.Reflection.EventInfo....
string Name
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _EventInfo.cs:23
MethodInfo GetAddMethod()
Provides COM objects with version-independent access to the M:System.Reflection.EventInfo....
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
Definition: Guid.cs:14
MemberTypes MemberType
Provides COM objects with version-independent access to the P:System.Reflection.EventInfo....
Definition: _EventInfo.cs:16
A platform-specific type that is used to represent a pointer or a handle.
Definition: IntPtr.cs:14
Discovers the attributes of an event and provides access to event metadata.
Definition: EventInfo.cs:15
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
Definition: Delegate.cs:15
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
Exposes the public members of the T:System.Reflection.EventInfo class to unmanaged code.
Definition: _EventInfo.cs:11
EventAttributes
Specifies the attributes of an event.
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can be used to get the type information for an in...
new int GetHashCode()
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method.
Type ReflectedType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _EventInfo.cs:37
ComInterfaceType
Identifies how to expose an interface to COM.
bool IsMulticast
Provides COM objects with version-independent access to the P:System.Reflection.EventInfo....
Definition: _EventInfo.cs:67
bool IsDefined(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
EventAttributes Attributes
Provides COM objects with version-independent access to the P:System.Reflection.EventInfo....
Definition: _EventInfo.cs:44
MethodInfo GetRemoveMethod()
Provides COM objects with version-independent access to the M:System.Reflection.EventInfo....
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
Maps a set of names to a corresponding set of dispatch identifiers.
new Type GetType()
Provides COM objects with version-independent access to the M:System.Object.GetType method.
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
Definition: MemberTypes.cs:9
MethodInfo GetRaiseMethod()
Provides COM objects with version-independent access to the M:System.Reflection.EventInfo....
new string ToString()
Provides COM objects with version-independent access to the M:System.Object.ToString method.