mscorlib(4.0.0.0) API with additions
_FieldInfo.cs
2 using System.Reflection;
3 
5 {
7  [Guid("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
8  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
9  [CLSCompliant(false)]
10  [TypeLibImportClass(typeof(FieldInfo))]
11  [ComVisible(true)]
12  public interface _FieldInfo
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 IsInitOnly
123  {
124  get;
125  }
126 
130  bool IsLiteral
131  {
132  get;
133  }
134 
138  bool IsNotSerialized
139  {
140  get;
141  }
142 
146  bool IsSpecialName
147  {
148  get;
149  }
150 
154  bool IsPinvokeImpl
155  {
156  get;
157  }
158 
161  void GetTypeInfoCount(out uint pcTInfo);
162 
167  void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
168 
175  void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
176 
186  void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
187 
190  new string ToString();
191 
196  new bool Equals(object other);
197 
200  new int GetHashCode();
201 
204  new Type GetType();
205 
210  object[] GetCustomAttributes(Type attributeType, bool inherit);
211 
215  object[] GetCustomAttributes(bool inherit);
216 
222  bool IsDefined(Type attributeType, bool inherit);
223 
227  object GetValue(object obj);
228 
232  object GetValueDirect(TypedReference obj);
233 
240  void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
241 
245  void SetValueDirect(TypedReference obj, object value);
246 
250  void SetValue(object obj, object value);
251  }
252 }
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can then be used to get the type information for ...
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
bool IsFamilyOrAssembly
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:107
new bool Equals(object other)
Provides COM objects with version-independent access to the M:System.Object.Equals(System....
bool IsInitOnly
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:123
Discovers the attributes of a field and provides access to field metadata.
Definition: FieldInfo.cs:15
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
Definition: BindingFlags.cs:10
Definition: __Canon.cs:3
Represents a field using an internal metadata token.
new int GetHashCode()
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method.
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.
void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
string Name
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _FieldInfo.cs:24
bool IsSpecialName
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:147
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.
MemberTypes MemberType
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:17
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
Definition: Guid.cs:14
Describes objects that contain both a managed pointer to a location and a runtime representation of t...
bool IsLiteral
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:131
Type ReflectedType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _FieldInfo.cs:38
FieldAttributes Attributes
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:59
void SetValueDirect(TypedReference obj, object value)
Provides COM objects with version-independent access to the M:System.Reflection.FieldInfo....
object [] GetCustomAttributes(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
FieldAttributes
Specifies flags that describe the attributes of a field.
Type FieldType
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:45
Type DeclaringType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
Definition: _FieldInfo.cs:31
bool IsNotSerialized
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:139
A platform-specific type that is used to represent a pointer or a handle.
Definition: IntPtr.cs:14
bool IsDefined(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
new Type GetType()
Provides COM objects with version-independent access to the M:System.Object.GetType method.
RuntimeFieldHandle FieldHandle
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:52
object GetValue(object obj)
Provides COM objects with version-independent access to the M:System.Reflection.FieldInfo....
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Definition: Binder.cs:10
object GetValueDirect(TypedReference obj)
Provides COM objects with version-independent access to the M:System.Reflection.FieldInfo....
bool IsStatic
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:115
Exposes the public members of the T:System.Reflection.FieldInfo class to unmanaged code.
Definition: _FieldInfo.cs:12
new string ToString()
Provides COM objects with version-independent access to the M:System.Object.ToString method.
ComInterfaceType
Identifies how to expose an interface to COM.
bool IsFamilyAndAssembly
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:99
bool IsPrivate
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:75
bool IsPinvokeImpl
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:155
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition: CultureInfo.cs:16
bool IsFamily
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:83
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
Definition: MemberTypes.cs:9
bool IsAssembly
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:91
bool IsPublic
Provides COM objects with version-independent access to the P:System.Reflection.FieldInfo....
Definition: _FieldInfo.cs:67