DkmClrValue.InstantiateProxyType(DkmInspectionContext, DkmClrType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用关联的 DebuggerTypeProxy 特性为 DkmClrValue 实例化一个代理类。
位置约束:必须从监视器组件 (组件级别 100000) 中调用 API < 。
此 API 是在 Visual Studio 14 RTM (VS14RTM) 中引入的。
public:
Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrValue ^ InstantiateProxyType(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ InspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Type);
public Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue InstantiateProxyType (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType Type);
member this.InstantiateProxyType : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Microsoft.VisualStudio.Debugger.Clr.DkmClrType -> Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue
Public Function InstantiateProxyType (InspectionContext As DkmInspectionContext, Type As DkmClrType) As DkmClrValue
参数
- InspectionContext
- DkmInspectionContext
中此计算的检查上下文。
- Type
- DkmClrType
中要实例化的代理的类型。 代理类型应具有采用单个参数的构造函数。 调试器会将正在检查的类型的实例传递给此构造函数。
返回
弄一个值,表示实例化的类型代理。
例外
E_INVALIDARG 指示该类型为未构造泛型类型。