DkmInspectionContext.GetClrCastExpression Yöntem

Tanım

Geçerli sözdizimi varsa, bir atama ifadesi alın.

Konum kısıtlaması: API 'nin bir Izleyici bileşeninden çağrılması gerekir (bileşen düzeyi < 100.000).

Bu API, Visual Studio 15 RTM (DkmApiVersion. VS15RTM) sürümünde sunulmuştur.

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

Parametreler

Argument
String

'Ndaki Dönüştürme ifadesi.

ClrType
DkmClrType

'Ndaki İçin bir atama ifadesi alınacak tür.

CustomTypeInfo
DkmClrCustomTypeInfo

[In, Isteğe bağlı] Derleyici iç tür bilgilerini tanımlamak için ifade derleyicisi tarafından belirtilen bilgiler.

CastExpressionOptions
DkmClrCastExpressionOptions

'Ndaki Dönüştürme hataları veya diğer sonuçlar ayrıştırmamak için atama ifadesi seçenekleri.

Döndürülenler

String

[Out, Isteğe bağlı] Tür adı geçersiz bir sözdizimi ise atama ifadesi veya null.

Şunlara uygulanır