SPIisSettings 构造函数 (String, Boolean, Boolean, SPServerBinding, SPSecureBinding, DirectoryInfo)

创建根据指定的设置的SPIisSettings类的一个新实例。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub New ( _
    serverComment As String, _
    allowAnonymous As Boolean, _
    disableKerberos As Boolean, _
    serverBinding As SPServerBinding, _
    secureBinding As SPSecureBinding, _
    path As DirectoryInfo _
)
用法
Dim serverComment As String
Dim allowAnonymous As Boolean
Dim disableKerberos As Boolean
Dim serverBinding As SPServerBinding
Dim secureBinding As SPSecureBinding
Dim path As DirectoryInfo

Dim instance As New SPIisSettings(serverComment, _
    allowAnonymous, disableKerberos, _
    serverBinding, secureBinding, path)
public SPIisSettings(
    string serverComment,
    bool allowAnonymous,
    bool disableKerberos,
    SPServerBinding serverBinding,
    SPSecureBinding secureBinding,
    DirectoryInfo path
)

参数

  • serverComment
    类型:System.String

    一个字符串,包含该 Web 应用程序,必须符合由 IIS 配置存储区中用于 IIS Web 站点的 Internet Information Services (IIS) ServerComment属性包含的值的说明。

  • allowAnonymous
    类型:System.Boolean

    true如果允许匿名访问的 Web 应用程序 ;否则为false。默认值是false。

  • disableKerberos
    类型:System.Boolean

    true禁用 Kerberos 身份验证的 Web 应用程序中 ;否则为false。默认值是false。

  • path
    类型:System.IO.DirectoryInfo

    指定的本地文件系统路径的文件夹包含文件的 Web 应用程序的虚拟目录例如,一个System.IO.DirectoryInfo对象: C:\Inetpub\wwwroot\wss\VirtualDirectories\80。

另请参阅

引用

SPIisSettings 类

SPIisSettings 成员

SPIisSettings 重载

Microsoft.SharePoint.Administration 命名空间