IDkmClrFullNameProvider.GetClrCastExpression 方法

定义

如果有效语法,则获取强制转换表达式。

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);
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

参数

inspectionContext
DkmInspectionContext

中要在执行检查操作时使用的选项和目标上下文。

argument
String

中要强制转换的表达式。

clrType
DkmClrType

中要为其获取强制转换表达式的类型。

customTypeInfo
DkmClrCustomTypeInfo

[In,可选]表达式编译器提供的用于标识编译器内部类型信息的信息。

castExpressionOptions
DkmClrCastExpressionOptions

中用于转换表达式的选项,以避免分析错误或其他结果。

返回

String

[Out,Optional]如果类型名称为无效语法,则为强制转换表达式或 null。

适用于