SPIisWebServiceApplication.ConfigureServiceHost Method
This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. Implementers should use Configure(ServiceHostBase, SPServiceAuthenticationMode) instead.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub ConfigureServiceHost ( _
serviceHost As ServiceHostBase, _
authenticationMode As SPServiceAuthenticationMode _
)
'Usage
Dim serviceHost As ServiceHostBase
Dim authenticationMode As SPServiceAuthenticationModeSPIisWebServiceApplication.ConfigureServiceHost(serviceHost, _
authenticationMode)
public static void ConfigureServiceHost(
ServiceHostBase serviceHost,
SPServiceAuthenticationMode authenticationMode
)
Parameters
serviceHost
Type: System.ServiceModel.ServiceHostBaseThe service host to configure.
authenticationMode
Type: Microsoft.SharePoint.SPServiceAuthenticationModeThe authentication mode setting for the service host.
Remarks
// Configure the service host for Windows authentication
SPIisWebServiceApplication.ConfigureServiceHost(serviceHost, SPServiceAuthenticationMode.Windows);
See Also
Reference
SPIisWebServiceApplication Class