Редагувати

Поділитися через


ScriptObject.GetField(String, BindingFlags) Method

Definition

Gets a field 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, or null if the script object does not contain the field.

Implements

Applies to

See also