Authentication.Mode method
Returns the authentication mode for the current SharePoint site.
Namespace: WebSvcAuthentication
Assembly: STSSOAP (in STSSOAP.dll)
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: WebSvcAuthentication.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.
See also
Reference
WebSvcAuthentication namespace
Other resources
Authentication, authorization, and security in SharePoint 2013