Share via


remove Element for credentials for authentication (ASP.NET Settings Schema)

Removes a reference to an inherited user from the collection of credentials.

Warning

This method of storing credentials should be used only in applications that don't require a high level of security.

<remove 
   name="username" 
/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

name

Required attribute.

The logon user name. This attribute must be the same as the name attribute of the user element that added the credential.

Child Elements

None.

Parent Elements

Element Description

configuration

The required root element in every configuration file used by the common language runtime and .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration settings in a configuration file. Contains configuration elements that configure ASP.NET Web applications and control how the applications behave.

authentication

Configures the ASP.NET authentication scheme that is used to identify users who view an ASP.NET application.

forms

Configures an ASP.NET application for custom forms-based authentication.

credentials

Allows optional definition of name and password credentials within the configuration file.

Remarks

The remove element removes a reference to an inherited user from the collection of credentials.

Element Information

Configuration Section Handler

AuthenticationSection

Configuration Member

Credentials

Remove

Configurable Locations

Machine.config

Root level Web.config

Application level Web.config

Requirements

IIS 5.0, IIS 5.1, or IIS 6.0

.NET Framework 1.0, 1.1, or 2.0

Visual Studio 2003, or Visual Studio 2005

See Also

Tasks

How to: Configure Specific Directories Using Location Settings
How to: Lock ASP.NET Configuration Settings

Reference

forms Element for authentication (ASP.NET Settings Schema)
user Element for credentials for authentication (ASP.NET Settings Schema)
clear Element for credentials for authentication (ASP.NET Settings Schema)
authentication Element (ASP.NET Settings Schema)
credentials Element for forms for authentication (ASP.NET Settings Schema)
system.web Element (ASP.NET Settings Schema)
passport Element for authentication (ASP.NET Settings Schema)
configuration Element (General Settings Schema)
System.Configuration
System.Web.Configuration
AuthenticationSection
Credentials
Remove

Concepts

ASP.NET Configuration File Hierarchy and Inheritance
Securing ASP.NET Configuration
ASP.NET Configuration Scenarios

Other Resources

ASP.NET Authentication
XML Web Services Created Using ASP.NET and XML Web Service Clients
General Configuration Settings (ASP.NET)
ASP.NET Configuration Settings
Configuring ASP.NET Applications
ASP.NET Configuration Files
ASP.NET Configuration API