FormsAuthenticationCredentials.PasswordFormat Property

 

Gets or sets the password format.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("passwordFormat", DefaultValue := FormsAuthPasswordFormat.SHA1)>
Public Property PasswordFormat As FormsAuthPasswordFormat

The following code example shows how to access the PasswordFormat property. Refer to the code example in the FormsAuthenticationCredentials class topic to learn how to get the section.

' Get the current PasswordFormat property value.
  Dim currentPasswordFormat _
  As FormsAuthPasswordFormat = _
  formsAuthenticationCredentials.PasswordFormat


' Set the PasswordFormat property value.
  formsAuthenticationCredentials.PasswordFormat = _
  FormsAuthPasswordFormat.SHA1

.NET Framework
Available since 2.0
Return to top
Show: