Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPServiceHostOperations.Configure method

Configures a Windows Communication Foundation (WCF) service host for use with SharePoint.

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

public static void Configure(
	this ServiceHostBase serviceHost,
	SPServiceAuthenticationMode authenticationMode
)

Parameters

serviceHost
Type: System.ServiceModel.ServiceHostBase

The service host to configure.

authenticationMode
Type: Microsoft.SharePoint.SPServiceAuthenticationMode

The authentication mode setting for the service host.

Usage note

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 or https://msdn.microsoft.com/EN-US/library/bb383977.
Show:
© 2015 Microsoft