SqlMembershipProvider.ApplicationName 属性
Q1
要配置会员资格提供程序,您还必须将部分添加到 web.config 文件中。 SqlMembershipProvider 的属性之一也是 applicationName。 如果不指定该属性,则Membership API会将数据库中的对象以“/”名称关联到根应用程序。
A) root 应用程序是什么意思?
例如,如果我在名为 Website1 的文件夹内创建新网站,并且不指定 applicationName 属性,则对象将与名称 “/网站1”。 文件夹 Website1 是引用描述的根应用程序吗?
B) 我假设“/”代表某种根目录,但是是哪一个呢?
Q2
如果您不指定应用程序- 成员资格配置中的名称属性、API(以及任何管理) 工具(例如 WAT)将对象与带有“/”名称的根应用程序关联起来。
上面引用的 API 将对象关联到根应用程序到底是什么意思? 简而言之,API 类将告诉成员资格提供者将数据库中的对象与名称“/ + DirectoryWhere__appIsSaved”关联起来?
谢谢
Q1
To configure membership provider, you also have to add section to your web.config file. One of the properties of SqlMembershipProvider is also applicationName. If you don’t specify this attribute, then membership API will associate objects in database to the root application with the “/” name.
A) what is meant by root application?
For example, if I create new website inside folder named Website1, and if I don’t specify applicationName attribute, then objects will be associated with a name “/Website1”. Is folder Website1 what about quote describes as root application?
B) I assume “/” represents some kind of root directory, but which one?
Q2
If you don’t specify an application-
Name property in the membership configuration, the API (and therefore any administration
tool such as WAT) associates objects to the root application with the “/” name.
What exactly does the above quote mean by API associating objects to the root application? Simply that API classes will tell membership provider to associate objects in DB with the name "/ + DirectoryWhere__appIsSaved"?
thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 IIS 中,根应用程序始终是网站(除非您删除应用程序设置,在这种情况下,它将是配置为应用程序的最外层目录。)基本上:
In IIS the root application is always the website (unless you remove the application settings, in which case it will be whichever is the outermost directory configured as an application.) Basically: