<bdo id='KsJYC'></bdo><ul id='KsJYC'></ul>

  • <i id='KsJYC'><tr id='KsJYC'><dt id='KsJYC'><q id='KsJYC'><span id='KsJYC'><b id='KsJYC'><form id='KsJYC'><ins id='KsJYC'></ins><ul id='KsJYC'></ul><sub id='KsJYC'></sub></form><legend id='KsJYC'></legend><bdo id='KsJYC'><pre id='KsJYC'><center id='KsJYC'></center></pre></bdo></b><th id='KsJYC'></th></span></q></dt></tr></i><div id='KsJYC'><tfoot id='KsJYC'></tfoot><dl id='KsJYC'><fieldset id='KsJYC'></fieldset></dl></div>

    <legend id='KsJYC'><style id='KsJYC'><dir id='KsJYC'><q id='KsJYC'></q></dir></style></legend>

      <small id='KsJYC'></small><noframes id='KsJYC'>

        <tfoot id='KsJYC'></tfoot>
      1. COM 库的属性/方法描述

        时间:2023-07-24

              • <legend id='dvLIL'><style id='dvLIL'><dir id='dvLIL'><q id='dvLIL'></q></dir></style></legend>
                <i id='dvLIL'><tr id='dvLIL'><dt id='dvLIL'><q id='dvLIL'><span id='dvLIL'><b id='dvLIL'><form id='dvLIL'><ins id='dvLIL'></ins><ul id='dvLIL'></ul><sub id='dvLIL'></sub></form><legend id='dvLIL'></legend><bdo id='dvLIL'><pre id='dvLIL'><center id='dvLIL'></center></pre></bdo></b><th id='dvLIL'></th></span></q></dt></tr></i><div id='dvLIL'><tfoot id='dvLIL'></tfoot><dl id='dvLIL'><fieldset id='dvLIL'></fieldset></dl></div>
              • <small id='dvLIL'></small><noframes id='dvLIL'>

              • <tfoot id='dvLIL'></tfoot>

                  <bdo id='dvLIL'></bdo><ul id='dvLIL'></ul>
                    <tbody id='dvLIL'></tbody>
                  本文介绍了COM 库的属性/方法描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果您创建 COMClass,我注意到当您引用生成的 tlb 文件时,XML 摘要标记中的值不会显示在 VB6/VBA 的对象浏览器中.有没有办法显示这些值?

                  If you create a COMClass, I've noticed that the values in the XML Summary tag do not show in the object browser of VB6/VBA when you reference the resulting tlb file. Is there a way to have these values show up?

                  推荐答案

                  不,12 年的 IntelliSense 发展阻止了它的工作.XML 文档注释会生成一个 IntelliSense 可以提取的 .xml 文件.在 VB6/A 中,文档存在于具有帮助字符串属性的类型库中.例如:

                  No, 12 years of IntelliSense evolution prevents this from working. The XML documentation comments generates an .xml file that IntelliSense can pick up. In VB6/A, documentation is present in the type library with the helpstring attribute. For example:

                  [
                    odl,
                    uuid(2334D2B1-713E-11CF-8AE5-00AA00C00905),
                    hidden,
                    dual,
                    nonextensible,
                    oleautomation
                  ]
                  interface IVBDataObject : IDispatch {
                      [id(0x00000001), helpstring("Clears all data and formats in a DataObject object."), helpcontext(0x00033693)]
                      HRESULT Clear();
                      // etc...
                  };
                  

                  从 [ComVisible] 类库中获取相同的内容需要 [Description] 属性.请注意this answer,了解它对属性的工作方式.

                  Getting the same from your [ComVisible] class library requires the [Description] attribute. Note this answer for a quirk about the way it works for properties.

                  这篇关于COM 库的属性/方法描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:IE 8 的 InternetExplorer COM 对象忽略了活动选项卡 下一篇:如何从 C# 读取非托管代码的 TLB(类型库)?

                  相关文章

                  <i id='aIr1C'><tr id='aIr1C'><dt id='aIr1C'><q id='aIr1C'><span id='aIr1C'><b id='aIr1C'><form id='aIr1C'><ins id='aIr1C'></ins><ul id='aIr1C'></ul><sub id='aIr1C'></sub></form><legend id='aIr1C'></legend><bdo id='aIr1C'><pre id='aIr1C'><center id='aIr1C'></center></pre></bdo></b><th id='aIr1C'></th></span></q></dt></tr></i><div id='aIr1C'><tfoot id='aIr1C'></tfoot><dl id='aIr1C'><fieldset id='aIr1C'></fieldset></dl></div>

                      <bdo id='aIr1C'></bdo><ul id='aIr1C'></ul>

                    <small id='aIr1C'></small><noframes id='aIr1C'>

                      <tfoot id='aIr1C'></tfoot>
                    1. <legend id='aIr1C'><style id='aIr1C'><dir id='aIr1C'><q id='aIr1C'></q></dir></style></legend>