FormsAuthenticationUser.Name Property
.NET Framework (current version)
Gets or sets the logon user name.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute("name", IsRequired = true, IsKey = true, DefaultValue = "")] [TypeConverterAttribute(typeof(LowerCaseStringConverter))] [StringValidatorAttribute] public string Name { get; set; }
The following code example shows how to use the Name property. Refer to the code example in the FormsAuthenticationUser class topic to learn how to get the section.
.NET Framework
Available since 2.0
Available since 2.0
Show: