语言

AuthenticationSection 构造函数

定义

初始化 AuthenticationSection 类的新实例。

public:
 AuthenticationSection();
public AuthenticationSection();
Public Sub New ()

示例

下面的代码示例演示如何获取 AuthenticationSection 对象。

AuthenticationSection newauthenticationSection =
    new AuthenticationSection();
Dim newauthenticationSection _
As New AuthenticationSection()

注解

构造 AuthenticationSection 函数不打算直接从代码使用。 它由 ASP.NET 配置系统调用。 可以使用AuthenticationSection该方法获取类的GetSection实例。

适用于