ActivationObject.GetLocalField(String) 方法

定义

获取具有指定名称的字段的局部声明。Gets the local declaration of a field that has the specified name. 在编译时使用此声明来进行错误检查。This is used at compile time for error checking.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual System::Reflection::FieldInfo ^ GetLocalField(System::String ^ name);
public virtual System.Reflection.FieldInfo GetLocalField (string name);
abstract member GetLocalField : string -> System.Reflection.FieldInfo
override this.GetLocalField : string -> System.Reflection.FieldInfo
Public Overridable Function GetLocalField (name As String) As FieldInfo

参数

name
String

字段的名称。The name of the field.

返回

FieldInfo

字段的局部声明。The local declaration of the field.

实现

适用于

另请参阅