DkmClrValue.InstantiateProxyType(DkmInspectionContext, DkmClrType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiate a proxy class for a DkmClrValue with an associated DebuggerTypeProxy attribute.
Location constraint: API must be called from a Monitor component (component level < 100,000).
This API was introduced in Visual Studio 14 RTM (DkmApiVersion.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
Parameters
- InspectionContext
- DkmInspectionContext
[In] The inspection context for this evaluation.
- Type
- DkmClrType
[In] The type of the proxy to instantiate. The proxy type should have a constructor taking a single parameter. The debugger will pass the instance of the type being inspected to this constructor.
Returns
[Out] A value representing the instantiated type proxy.
Exceptions
E_INVALIDARG indicates that Type is an unconstructed generic type.