简体   繁体   English

ASP.NET成员资格/ SQLMembershipProvider源代码

[英]ASP.NET membership/SQLMembershipProvider Source Code

In the SQLMembershipProvider source for ASP.NET membership, there is a custom exception, MembershipPasswordException. 在ASP.NET成员资格的SQLMembershipProvider源中,存在一个自定义异常MembershipPasswordException。

The definition of it is not part of the source, but when I do a goto definition on it, it opens the definition, which indicates: [from metatdata] and the file it came from is a dll, system.web.dll from a temporary directory. 它的定义不是源代码的一部分,但当我对它进行goto定义时,它会打开定义,表明:[来自metatdata],它来自的文件是一个dll,system.web.dll来自临时目录。

How did that get there or was it part of the msi install that the toolkit provider came with? 这是怎么做到的,或者它是工具包提供商附带的msi安装的一部分?

When using Reflector I saw that it's directly in the System.Web.Security namespace. 使用Reflector时,我看到它直接在System.Web.Security命名空间中。 When you take a look at the code and Visual Studio notices it's already in an assembly it knows about and you digg deeper on it it'll open it's metadata. 当你看一下代码和Visual Studio注意到它已经在一个它已经知道的程序集中,你深入了解它就会打开它的元数据。

Both SqlMembershipProvider and MembershipPasswordException are part of the System.Web assembly and live in the System.Web.Security namespace. SqlMembershipProviderMembershipPasswordException都是System.Web程序集的一部分, SqlMembershipProvider在于System.Web.Security命名空间中。 Microsoft just didn't include the MembershipPasswordException in the source code that comes with the toolkit. Microsoft只是没有在工具包附带的源代码中包含MembershipPasswordException

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM