Bewerken

Share via


FieldInfo.GetValueDirect(TypedReference) Method

Definition

Important

This API is not CLS-compliant.

CLS-compliant alternative
System.Reflection.FieldInfo.GetValue(Object)

Returns the value of a field supported by a given object.

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

Parameters

obj
TypedReference

A TypedReference structure that encapsulates a managed pointer to a location and a runtime representation of the type that might be stored at that location.

Returns

An Object containing a field value.

Implements

Attributes

Exceptions

The caller requires the Common Language Specification (CLS) alternative, but called this method instead.

Applies to