mscorlib(4.0.0.0) API with additions
_MethodInfo.cs
2 using System.Reflection;
3 
5 {
7  [Guid("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F")]
8  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
9  [CLSCompliant(false)]
10  [TypeLibImportClass(typeof(MethodInfo))]
11  [ComVisible(true)]
12  public interface _MethodInfo
13  {
17  {
18  get;
19  }
20 
23  string Name
24  {
25  get;
26  }
27 
31  {
32  get;
33  }
34 
38  {
39  get;
40  }
41 
45  {
46  get;
47  }
48 
52  {
53  get;
54  }
55 
59  {
60  get;
61  }
62 
66  bool IsPublic
67  {
68  get;
69  }
70 
74  bool IsPrivate
75  {
76  get;
77  }
78 
82  bool IsFamily
83  {
84  get;
85  }
86 
90  bool IsAssembly
91  {
92  get;
93  }
94 
99  {
100  get;
101  }
102 
106  bool IsFamilyOrAssembly
107  {
108  get;
109  }
110 
114  bool IsStatic
115  {
116  get;
117  }
118 
122  bool IsFinal
123  {
124  get;
125  }
126 
130  bool IsVirtual
131  {
132  get;
133  }
134 
138  bool IsHideBySig
139  {
140  get;
141  }
142 
146  bool IsAbstract
147  {
148  get;
149  }
150 
154  bool IsSpecialName
155  {
156  get;
157  }
158 
162  bool IsConstructor
163  {
164  get;
165  }
166 
170  {
171  get;
172  }
173 
177  {
178  get;
179  }
180 
183  void GetTypeInfoCount(out uint pcTInfo);
184 
189  void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
190 
197  void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
198 
208  void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
209 
212  new string ToString();
213 
218  new bool Equals(object other);
219 
222  new int GetHashCode();
223 
226  new Type GetType();
227 
233  object[] GetCustomAttributes(Type attributeType, bool inherit);
234 
239  object[] GetCustomAttributes(bool inherit);
240 
247  bool IsDefined(Type attributeType, bool inherit);
248 
252 
256 
264  object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
265 
270  object Invoke(object obj, object[] parameters);
271 
275  }
276 }
Discovers the attributes of a parameter and provides access to parameter metadata.
MethodAttributes
Specifies flags for method attributes. These flags are defined in the corhdr.h file.
MethodImplAttributes GetMethodImplementationFlags()
Provides COM objects with version-independent access to the M:System.Reflection.MethodBase....
MethodImplAttributes
Specifies flags for the attributes of a method implementation.
Discovers the attributes of a method and provides access to method metadata.
Definition: MethodInfo.cs:13
bool IsPrivate
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:75
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
Definition: BindingFlags.cs:10
Exposes the public members of the T:System.Reflection.MethodInfo class to unmanaged code.
Definition: _MethodInfo.cs:12
ICustomAttributeProvider ReturnTypeCustomAttributes
Provides COM objects with version-independent access to the P:System.Reflection.MethodInfo....
Definition: _MethodInfo.cs:177
Definition: __Canon.cs:3
bool IsAssembly
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:91
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
new bool Equals(object other)
Provides COM objects with version-independent access to the M:System.Object.Equals(System....
bool IsStatic
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:115
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...
CallingConvention
Specifies the calling convention required to call methods implemented in unmanaged code.
bool IsPublic
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:67
bool IsHideBySig
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:139
bool IsAbstract
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:147
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.
bool IsFinal
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:123
new int GetHashCode()
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method.
CallingConventions
Defines the valid calling conventions for a method.
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
Definition: Guid.cs:14
T:System.RuntimeMethodHandle is a handle to the internal metadata representation of a method.
bool IsDefined(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
bool IsFamilyOrAssembly
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:107
Type ReflectedType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _MethodInfo.cs:38
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.
bool IsFamilyAndAssembly
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:99
A platform-specific type that is used to represent a pointer or a handle.
Definition: IntPtr.cs:14
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
Type DeclaringType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _MethodInfo.cs:31
RuntimeMethodHandle MethodHandle
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:45
new string ToString()
Provides COM objects with version-independent access to the M:System.Object.ToString method.
object [] GetCustomAttributes(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Definition: Binder.cs:10
ComInterfaceType
Identifies how to expose an interface to COM.
bool IsVirtual
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:131
ParameterInfo [] GetParameters()
Provides COM objects with version-independent access to the M:System.Reflection.MethodBase....
string Name
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _MethodInfo.cs:24
MethodAttributes Attributes
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:52
bool IsSpecialName
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:155
MemberTypes MemberType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _MethodInfo.cs:17
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition: CultureInfo.cs:16
new Type GetType()
Provides COM objects with version-independent access to the M:System.Type.GetType method.
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
Definition: MemberTypes.cs:9
bool IsConstructor
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:163
MethodInfo GetBaseDefinition()
Provides COM objects with version-independent access to the M:System.Reflection.MethodInfo....
bool IsFamily
Provides COM objects with version-independent access to the P:System.Reflection.MethodBase....
Definition: _MethodInfo.cs:83
Provides custom attributes for reflection objects that support them.
Type ReturnType
Provides COM objects with version-independent access to the P:System.Reflection.MethodInfo....
Definition: _MethodInfo.cs:170