共用方式為


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.實作者應使用Configure(ServiceHostBase, SPServiceAuthenticationMode)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
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
)

參數

備註

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

請參閱

參照

SPIisWebServiceApplication class

SPIisWebServiceApplication members

Microsoft.SharePoint.Administration namespace