DkmInspectionContext.GetClrCastExpression Method

Definition

Get a cast 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 ^ GetClrCastExpression(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(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(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 (string Argument, Microsoft.VisualStudio.Debugger.Clr.DkmClrType ClrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo CustomTypeInfo, Microsoft.VisualStudio.Debugger.Clr.DkmClrCastExpressionOptions CastExpressionOptions);
public string? GetClrCastExpression (string Argument, Microsoft.VisualStudio.Debugger.Clr.DkmClrType ClrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo? CustomTypeInfo, Microsoft.VisualStudio.Debugger.Clr.DkmClrCastExpressionOptions CastExpressionOptions);
member this.GetClrCastExpression : string * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * Microsoft.VisualStudio.Debugger.Clr.DkmClrCastExpressionOptions -> string
Public Function GetClrCastExpression (Argument As String, ClrType As DkmClrType, CustomTypeInfo As DkmClrCustomTypeInfo, CastExpressionOptions As DkmClrCastExpressionOptions) As String

Parameters

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