DkmClrValue.GetMemberValue 方法

定义

获取作为 DkmClrValue 的字段或属性的值。

位置约束:必须从监视器组件 (组件级别 100000) 中调用 API < 。

此 API 是在 Visual Studio 14 RTM (VS14RTM) 中引入的。

public:
 Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrValue ^ GetMemberValue(System::String ^ MemberName, int MemberType, System::String ^ ParentTypeName, Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ InspectionContext);
public Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue GetMemberValue (string MemberName, int MemberType, string ParentTypeName, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext);
member this.GetMemberValue : string * int * string * Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext -> Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue
Public Function GetMemberValue (MemberName As String, MemberType As Integer, ParentTypeName As String, InspectionContext As DkmInspectionContext) As DkmClrValue

参数

MemberName
String

中要获取其值的成员的名称。

MemberType
Int32

中要获取其值的成员的类型。 该值应与 MemberTypes 的值匹配。 此方法当前仅支持获取 (16) 的字段 (4) 或属性的值。

ParentTypeName
String

[In,可选]包含要获取其值的成员的类型的完整名称。 如果 ParentTypeName 值为 null,此方法将查找运行时类型中的成员。

InspectionContext
DkmInspectionContext

中此计算的检查上下文。

返回

DkmClrValue

弄给定成员的 DkmClrValue。

适用于