Condividi tramite


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

Remarks

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

See Also

Reference

SPIisWebServiceApplication Class

SPIisWebServiceApplication Members

Microsoft.SharePoint.Administration Namespace