Bewerken

Delen via


TypedArray.GetField(String, BindingFlags) Method

Definition

Gets a field of the Array class type that has the specified name.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public 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 Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo

Parameters

name
String

The name of the field to get.

bindingAttr
BindingFlags

A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.

Returns

A field that has the specified name, if one is found; otherwise, null.

Implements

Applies to

See also