Udostępnij za pośrednictwem


IDkmClrFullNameProvider.GetClrCastExpression Method

Definition

Get a cast expression, if valid syntax.

public:
 System::String ^ GetClrCastExpression(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, System::String ^ argument, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ customTypeInfo, Microsoft::VisualStudio::Debugger::Clr::DkmClrCastExpressionOptions castExpressionOptions);
public:
 Platform::String ^ GetClrCastExpression(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, Platform::String ^ argument, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ customTypeInfo, Microsoft::VisualStudio::Debugger::Clr::DkmClrCastExpressionOptions castExpressionOptions);
std::wstring GetClrCastExpression(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext const & inspectionContext, std::wstring const & argument, Microsoft::VisualStudio::Debugger::Clr::DkmClrType const & clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo const & customTypeInfo, Microsoft::VisualStudio::Debugger::Clr::DkmClrCastExpressionOptions castExpressionOptions);
public string GetClrCastExpression (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, string argument, Microsoft.VisualStudio.Debugger.Clr.DkmClrType clrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo customTypeInfo, Microsoft.VisualStudio.Debugger.Clr.DkmClrCastExpressionOptions castExpressionOptions);
public string? GetClrCastExpression (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, string argument, Microsoft.VisualStudio.Debugger.Clr.DkmClrType clrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo? customTypeInfo, Microsoft.VisualStudio.Debugger.Clr.DkmClrCastExpressionOptions castExpressionOptions);
abstract member GetClrCastExpression : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * string * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * Microsoft.VisualStudio.Debugger.Clr.DkmClrCastExpressionOptions -> string
Public Function GetClrCastExpression (inspectionContext As DkmInspectionContext, argument As String, clrType As DkmClrType, customTypeInfo As DkmClrCustomTypeInfo, castExpressionOptions As DkmClrCastExpressionOptions) As String

Parameters

inspectionContext
DkmInspectionContext

[In] Options and target context to use while performing the inspection operation.

argument
String

[In] Expression being cast.

clrType
DkmClrType

[In] The type to get a cast expression for.

customTypeInfo
DkmClrCustomTypeInfo

[In,Optional] The information provided by the expression compiler for identifying compiler intrinsic type information.

castExpressionOptions
DkmClrCastExpressionOptions

[In] Options for the cast expression to avoid parse errors or other results.

Returns

[Out,Optional] The cast expression or null if the type name would be invalid syntax.

Applies to