IDkmClrFullNameProvider.GetClrObjectCreationExpression 方法

定义

如果有效语法,则获取对象创建表达式。

public:
 System::String ^ GetClrObjectCreationExpression(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ customTypeInfo, cli::array <System::String ^> ^ arguments);
public:
 Platform::String ^ GetClrObjectCreationExpression(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ customTypeInfo, Platform::Array <Platform::String ^> ^ arguments);
std::wstring GetClrObjectCreationExpression(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext const & inspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType const & clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo const & customTypeInfo, std::Array <std::wstring const &> const & arguments);
public string GetClrObjectCreationExpression (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType clrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo customTypeInfo, string[] arguments);
abstract member GetClrObjectCreationExpression : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * string[] -> string
Public Function GetClrObjectCreationExpression (inspectionContext As DkmInspectionContext, clrType As DkmClrType, customTypeInfo As DkmClrCustomTypeInfo, arguments As String()) As String

参数

inspectionContext
DkmInspectionContext

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

clrType
DkmClrType

中要为其获取对象表达式的类型。

customTypeInfo
DkmClrCustomTypeInfo

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

arguments
String[]

中构造函数调用的参数。

返回

String

[Out,Optional]如果类型名称为无效语法,则为对象创建表达式或 null。

适用于