Authentication.Mode Method
Returns the authentication mode for the current SharePoint site.
Namespace: [Authentication Web service]
Web service reference: http://Site/_vti_bin/Authentication.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/Mode", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function Mode As AuthenticationMode
'Usage
Dim instance As Authentication
Dim returnValue As AuthenticationMode
returnValue = instance.Mode()
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/Mode", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public AuthenticationMode Mode()
Return Value
Type: [Authentication Web service].AuthenticationMode
An [System.Web.Configuration.AuthenticationMode] that identifies the user authentication system that is being used by the current SharePoint site.
Remarks
There are two authentication systems available to SharePoint sites: Windows authentication and Forms authentication. For more information about types of authentication, see ASP.NET Authentication.
Important
Microsoft SharePoint Foundation 2010 does not support Windows Live authentication.