Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Configures a Windows Communication Foundation (WCF) service host for use with SharePoint.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
<ExtensionAttribute> _
Public Shared Sub Configure ( _
serviceHost As ServiceHostBase, _
authenticationMode As SPServiceAuthenticationMode _
)
'Usage
Dim serviceHost As ServiceHostBase
Dim authenticationMode As SPServiceAuthenticationMode
serviceHost.Configure(authenticationMode)
public static void Configure(
this ServiceHostBase serviceHost,
SPServiceAuthenticationMode authenticationMode
)
serviceHost
Type: System.ServiceModel.ServiceHostBaseThe service host to configure.
authenticationMode
Type: Microsoft.SharePoint.SPServiceAuthenticationModeThe authentication mode setting for the service host.
In Visual Basic and C#, you can call this method as an instance method on any object of type ServiceHostBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.15) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.15).