SPIisWebServiceApplication.ConfigureServiceHost 方法
此类或成员已被弃用。更新或编写使用此类或此成员的新应用程序时,请改用新的类或成员。实施者应改为使用Configure(ServiceHostBase, SPServiceAuthenticationMode) 。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Sub ConfigureServiceHost ( _
serviceHost As ServiceHostBase, _
authenticationMode As SPServiceAuthenticationMode _
)
用法
Dim serviceHost As ServiceHostBase
Dim authenticationMode As SPServiceAuthenticationModeSPIisWebServiceApplication.ConfigureServiceHost(serviceHost, _
authenticationMode)
public static void ConfigureServiceHost(
ServiceHostBase serviceHost,
SPServiceAuthenticationMode authenticationMode
)
参数
serviceHost
类型:System.ServiceModel.ServiceHostBase要配置的服务的宿主。
authenticationMode
类型:Microsoft.SharePoint.SPServiceAuthenticationMode服务主机身份验证模式设置。
备注
// Configure the service host for Windows authentication
SPIisWebServiceApplication.ConfigureServiceHost(serviceHost, SPServiceAuthenticationMode.Windows);