IActivationObject.GetLocalField(String) 方法

定义

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

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

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

参数

name
String

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

返回

FieldInfo

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

适用于

另请参阅