_FieldInfo.GetValueDirect(TypedReference) 方法

定义

重要

此 API 不符合 CLS。

为 COM 对象提供与版本无关的访问 GetValueDirect(TypedReference) 方法。

public:
 System::Object ^ GetValueDirect(TypedReference obj);
[System.CLSCompliant(false)]
public object GetValueDirect(TypedReference obj);
public object GetValueDirect(TypedReference obj);
[<System.CLSCompliant(false)>]
abstract member GetValueDirect : TypedReference -> obj
abstract member GetValueDirect : TypedReference -> obj
Public Function GetValueDirect (obj As TypedReference) As Object

参数

obj
TypedReference

封装 TypedReference 指向某个位置的托管指针的结构,以及可能存储在该位置的类型的运行时表示形式。

返回

Object包含字段值。

属性

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。

该方法 GetValueDirect 返回给定对象支持的字段的值。

适用于