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

    <tfoot id='UZOjm'></tfoot>

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

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

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

      限制对 .NET 程序集的访问?

      Restrict access to .NET assembly?(限制对 .NET 程序集的访问?)

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

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

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

              <i id='MLV0S'><tr id='MLV0S'><dt id='MLV0S'><q id='MLV0S'><span id='MLV0S'><b id='MLV0S'><form id='MLV0S'><ins id='MLV0S'></ins><ul id='MLV0S'></ul><sub id='MLV0S'></sub></form><legend id='MLV0S'></legend><bdo id='MLV0S'><pre id='MLV0S'><center id='MLV0S'></center></pre></bdo></b><th id='MLV0S'></th></span></q></dt></tr></i><div id='MLV0S'><tfoot id='MLV0S'></tfoot><dl id='MLV0S'><fieldset id='MLV0S'></fieldset></dl></div>
                <tbody id='MLV0S'></tbody>
                <tfoot id='MLV0S'></tfoot>
                本文介绍了限制对 .NET 程序集的访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                有没有办法让 .NET 程序集仅可供授权来源访问?

                Is there a way to have a .NET assembly accessible for only authorized sources?

                我的意思是我想要一个包含组件的 DLL,但我不希望任何人能够使用这些组件,但我的解决方案中的其他 DLL 和 EXE 除外.不过,我确实希望它们位于单独的 DLL 中.

                I mean I want to have a DLL that contains components, but I don't want anyone to be able to use these components but the other DLLs EXEs in my solution. I do want them to be in separated DLLs though.

                如果这个功能存在的话,对命名空间的限制也是一个好主意.

                Restriction on namespace might also be a good idea if this feature exists out there.

                有办法吗?

                推荐答案

                您可以创建内部类.并通过使用 让您指定的程序集访问这些类InternalsVisibleTo 属性.

                You can create internal classes. And the give your specified assemblies to access these classes by using InternalsVisibleTo attribute.

                程序集应该是强命名的.您可以在 中找到有关该属性的更多信息这篇文章.

                The assembly should be strong named. You can find more information about the attribute in this article.

                这篇关于限制对 .NET 程序集的访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                IBM.Data.DB2.Core connection problems(IBM.Data.DB2.Core 连接问题)
                Datetime field overflow with IBM Data Server Client v9.7fp5(IBM Data Server Client v9.7fp5 的日期时间字段溢出)
                Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                IBM .NET Data Provider Connection String issue with Library List(库列表的 IBM .NET 数据提供程序连接字符串问题)
                .NET DB2 OLEDB pre-requisites(.NET DB2 OLEDB 先决条件)
                Cannot connect to DB2: IBM.Data.DB2.Core version 3.1.0.400 on Azure Function(无法连接到 DB2:Azure 函数上的 IBM.Data.DB2.Core 版本 3.1.0.400)
              1. <i id='KPHOl'><tr id='KPHOl'><dt id='KPHOl'><q id='KPHOl'><span id='KPHOl'><b id='KPHOl'><form id='KPHOl'><ins id='KPHOl'></ins><ul id='KPHOl'></ul><sub id='KPHOl'></sub></form><legend id='KPHOl'></legend><bdo id='KPHOl'><pre id='KPHOl'><center id='KPHOl'></center></pre></bdo></b><th id='KPHOl'></th></span></q></dt></tr></i><div id='KPHOl'><tfoot id='KPHOl'></tfoot><dl id='KPHOl'><fieldset id='KPHOl'></fieldset></dl></div>
                <tfoot id='KPHOl'></tfoot>

                  • <bdo id='KPHOl'></bdo><ul id='KPHOl'></ul>

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

                            <tbody id='KPHOl'></tbody>

                        • <small id='KPHOl'></small><noframes id='KPHOl'>