DkmClrValue.InstantiateResultsViewProxy Method

Definition

Instantiate the proxy class to use for iterating an IEnumerable value.

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 ^ InstantiateResultsViewProxy(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ InspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ EnumerableType);
public Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue InstantiateResultsViewProxy (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType EnumerableType);
public Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue? InstantiateResultsViewProxy (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType EnumerableType);
member this.InstantiateResultsViewProxy : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Microsoft.VisualStudio.Debugger.Clr.DkmClrType -> Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue
Public Function InstantiateResultsViewProxy (InspectionContext As DkmInspectionContext, EnumerableType As DkmClrType) As DkmClrValue

Parameters

InspectionContext
DkmInspectionContext

[In] The inspection context for this evaluation.

EnumerableType
DkmClrType

[In] The interface type (IEnumerable or IEnumerable<T>) to construct the the results view proxy for. This is needed because a class may implement several different IEnumerable interfaces.

Returns

[Out,Optional] A value representing the instantiated results view proxy. This method returns null in case of failure instantiating the results view proxy.

Exceptions

COR_E_INVALIDOPERATION indicates that this method was called on a DkmClrValue that does not implement the requested interface or represents a null value.

E_INVALIDARG indicates that EnumerableType is not an interface type.

Applies to