WebSiteProperties.EnableNTLMAuthentication 属性

获取或设置 ASP.NET Development Server 是否使用 NTLM 身份验证。

命名空间:  VsWebSite
程序集:  VsWebSite.Interop(在 VsWebSite.Interop.dll 中)

语法

声明
Property EnableNTLMAuthentication As Boolean
    Get
    Set
bool EnableNTLMAuthentication { get; set; }
property bool EnableNTLMAuthentication {
    bool get ();
    void set (bool value);
}
abstract EnableNTLMAuthentication : bool with get, set
function get EnableNTLMAuthentication () : boolean
function set EnableNTLMAuthentication (value : boolean)

属性值

类型:System.Boolean
如果启用 NTLM 身份验证,则为 true;否则为 false。

备注

EnableNTLMAuthentication 属性仅对使用 ASP.NET 开发服务器的文件系统网站有效。 对 FTP 或 IIS 网站来说,此属性无效或不具有任何作用。 此属性特别用于支持多个用户在一台计算机上通过终端服务使用 Development Server 的情况。

提示

如果有些浏览器不支持 NTLM 身份验证,则为某个网站启用 NTLM 身份验证可能会使这些浏览器无法查看页面。

示例

有关读取和设置后期绑定属性的示例,请参见 WebSiteProperties

.NET Framework 安全性

请参见

参考

WebSiteProperties 接口

VsWebSite 命名空间

EnvDTE

WebSiteProperties

其他资源

NTLM and Kerberos Authentication

引用自动化程序集和 DTE2 对象