DkmInspectionContext.GetClrObjectCreationExpression Method

Definition

Get an object creation expression, if valid syntax.

Location constraint: API must be called from a Monitor component (component level < 100,000).

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

public:
 System::String ^ GetClrObjectCreationExpression(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::Clr::DkmClrType ^ ClrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ CustomTypeInfo, Platform::Array <Platform::String ^> ^ Arguments);
std::wstring GetClrObjectCreationExpression(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.Clr.DkmClrType ClrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo CustomTypeInfo, string[] Arguments);
public string? GetClrObjectCreationExpression (Microsoft.VisualStudio.Debugger.Clr.DkmClrType ClrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo? CustomTypeInfo, string[] Arguments);
member this.GetClrObjectCreationExpression : Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * string[] -> string
Public Function GetClrObjectCreationExpression (ClrType As DkmClrType, CustomTypeInfo As DkmClrCustomTypeInfo, Arguments As String()) As String

Parameters

ClrType
DkmClrType

[In] The type to get an object expression for.

CustomTypeInfo
DkmClrCustomTypeInfo

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

Arguments
String[]

[In] Arguments to constructor call.

Returns

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

Applies to