IDkmClrFullNameProvider.GetClrMemberName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取成员访问表达式(如果它可以表示为有效语法)。
public:
System::String ^ GetClrMemberName(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, 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(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, 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(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext const & inspectionContext, 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 (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, string parentFullName, Microsoft.VisualStudio.Debugger.Clr.DkmClrType clrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo customTypeInfo, string memberName, bool requiresExplicitCast, bool isStatic);
abstract member GetClrMemberName : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * string * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * string * bool * bool -> string
Public Function GetClrMemberName (inspectionContext As DkmInspectionContext, parentFullName As String, clrType As DkmClrType, customTypeInfo As DkmClrCustomTypeInfo, memberName As String, requiresExplicitCast As Boolean, isStatic As Boolean) As String
参数
- inspectionContext
- DkmInspectionContext
中要在执行检查操作时使用的选项和目标上下文。
- parentFullName
- String
中用点分隔的表达式。
- clrType
- DkmClrType
[In,可选]声明类型。 如果 RequiresExplicitCast 或 IsStatic 为 true,则此值是必需的。
- customTypeInfo
- DkmClrCustomTypeInfo
[In,可选]表达式编译器提供的信息,用于标识声明类型) 的编译器内部类型信息 (。
- memberName
- String
中类型成员的名称。
- requiresExplicitCast
- Boolean
中如果表达式必须显式转换为指向成员的点,则为 True。
- isStatic
- Boolean
中如果该成员是静态的,则为 True。
返回
[Out,Optional]如果表达式不能表示为有效语法,则为成员访问表达式或 null。