TypeInfo.GetField Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
System::Reflection::FieldInfo ^ GetField(System::String ^ name);
C#
public System.Reflection.FieldInfo GetField(string name);
member this.GetField : string -> System.Reflection.FieldInfo
Public Function GetField (name As String) As FieldInfo
Parameters
- name
- String
Returns
Applies to
.NET Core 1.1 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
public:
virtual System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
C#
public virtual System.Reflection.FieldInfo GetField(string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
override this.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
Public Overridable Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo
Parameters
- name
- String
- bindingAttr
- BindingFlags
Returns
Applies to
.NET Core 1.1 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: