IDkmClrFormatter.GetTypeName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取要在给定 DkmClrType 的 UI 中显示的类型名称字符串。 此方法将始终返回值,并在变量检查窗口中使用。
public:
System::String ^ GetTypeName(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ inspectionContext, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ clrType, Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmClrCustomTypeInfo ^ customTypeInfo, System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ formatSpecifiers);
public string GetTypeName (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext inspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrType clrType, Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo customTypeInfo, System.Collections.ObjectModel.ReadOnlyCollection<string> formatSpecifiers);
abstract member GetTypeName : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrCustomTypeInfo * System.Collections.ObjectModel.ReadOnlyCollection<string> -> string
Public Function GetTypeName (inspectionContext As DkmInspectionContext, clrType As DkmClrType, customTypeInfo As DkmClrCustomTypeInfo, formatSpecifiers As ReadOnlyCollection(Of String)) As String
参数
- inspectionContext
- DkmInspectionContext
中要在执行检查操作时使用的选项和目标上下文。
- clrType
- DkmClrType
中要获取其名称的类型。
- customTypeInfo
- DkmClrCustomTypeInfo
[In,可选]表达式编译器提供的用于标识编译器内部类型信息的可选信息。
- formatSpecifiers
- ReadOnlyCollection<String>
[In,可选]可选格式说明符 (s) 在设置此结果的格式时使用。
返回
弄类型名称字符串。