Udostępnij za pośrednictwem


IDkmClrValueInspectionCallback.InstantiateResultsViewProxy Method

Definition

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

public:
 Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrValue ^ InstantiateResultsViewProxy(Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrValue ^ clrValue, Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ enumerableType);
public Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue InstantiateResultsViewProxy (Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue clrValue, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType enumerableType);
public Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue? InstantiateResultsViewProxy (Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue clrValue, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType enumerableType);
abstract member InstantiateResultsViewProxy : Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue * Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Microsoft.VisualStudio.Debugger.Clr.DkmClrType -> Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue
Public Function InstantiateResultsViewProxy (clrValue As DkmClrValue, inspectionContext As DkmInspectionContext, enumerableType As DkmClrType) As DkmClrValue

Parameters

clrValue
DkmClrValue

[In] A value resulting from a CLR inspection query. These values are used by a Result Formatter to generate DkmEvaluationResults.

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