Share via


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)

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

Remarks

// Configure the service host for Windows authentication
            SPIisWebServiceApplication.ConfigureServiceHost(serviceHost, SPServiceAuthenticationMode.Windows);

See also

Reference

SPIisWebServiceApplication class

SPIisWebServiceApplication members

Microsoft.SharePoint.Administration namespace