DkmInspectionContext.GetClrMemberName(String, DkmClrType, DkmClrCustomTypeInfo, String, Boolean, Boolean) Method

Definition

Get a member access expression, if it can be represented as 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 ^ GetClrMemberName(System::String ^ ParentFullName, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ ClrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ CustomTypeInfo, System::String ^ MemberName, bool RequiresExplicitCast, bool IsStatic);
public:
 Platform::String ^ GetClrMemberName(Platform::String ^ ParentFullName, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ ClrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ CustomTypeInfo, Platform::String ^ MemberName, bool RequiresExplicitCast, bool IsStatic);
std::wstring GetClrMemberName(std::wstring const & ParentFullName, Microsoft::VisualStudio::Debugger::Clr::DkmClrType const & ClrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo const & CustomTypeInfo, std::wstring const & MemberName, bool RequiresExplicitCast, bool IsStatic);
public string GetClrMemberName (string ParentFullName, Microsoft.VisualStudio.Debugger.Clr.DkmClrType ClrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo CustomTypeInfo, string MemberName, bool RequiresExplicitCast, bool IsStatic);
member this.GetClrMemberName : string * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * string * bool * bool -> string
Public Function GetClrMemberName (ParentFullName As String, ClrType As DkmClrType, CustomTypeInfo As DkmClrCustomTypeInfo, MemberName As String, RequiresExplicitCast As Boolean, IsStatic As Boolean) As String

Parameters

ParentFullName
String

[In] The expression being dotted into.

ClrType
DkmClrType

[In,Optional] The declaring type. This is required if either RequiresExplicitCast or IsStatic is true.

CustomTypeInfo
DkmClrCustomTypeInfo

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

MemberName
String

[In] The name of the type member.

RequiresExplicitCast
Boolean

[In] True if the expression must be explicitly cast to dot into the member.

IsStatic
Boolean

[In] True if the member is static.

Returns

String

[Out,Optional] The member access expression or null if the expression cannot be represented as valid syntax.

Applies to