Returns the FieldInfo object representing the field with the specified name.
[Visual Basic] Overrides Public Function GetField( _ ByVal name As String, _ ByVal bindingAttr As BindingFlags _ ) As FieldInfo [C#] public override FieldInfo GetField( string name, BindingFlags bindingAttr ); [C++] public: override FieldInfo* GetField( String* name, BindingFlags bindingAttr ); [JScript] public override function GetField( name : String, bindingAttr : BindingFlags ) : FieldInfo;
Returns an FieldInfo object representing the field declared or inherited by this TypeDelegator with the specified name. Returns null if no such field is found.
Use a bindingAttr of BindingFlags.NonPublic to return all public and nonpublic fields. Use BindingFlags.IgnoreCase to ignore the case of the fields as the search is case sensitive.
TypeDelegator Class | TypeDelegator Members | System.Reflection Namespace