Share via


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 three authentication systems available to SharePoint sites: Windows authentication, Microsoft Windows Live ID authentication (formerly known as "Passport" authentication), and Forms authentication. For more information about types of authentication, see ASP.NET Authentication.

See Also

Reference

Authentication Class

Authentication Members

websvcAuthentication Namespace

Other Resources

Authorization and Authentication

ASP.NET Authentication