ActiveDirectoryMembershipProvider.ApplicationName Property

 

The name of the application using the custom membership provider.

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

public override string ApplicationName { get; set; }

Property Value

Type: System.String

The name of the application using the custom membership provider.

Exception Condition
NotSupportedException

An attempt was made to set the ApplicationName property.

InvalidOperationException

An attempt to access the ApplicationName property was made before the ActiveDirectoryMembershipProvider instance was initialized.

The ApplicationName property can be set to the name of the ASP.NET application; however, the application name is not used by the ActiveDirectoryMembershipProvider class.

Therefore, unlike other MembershipProvider implementations, all ASP.NET applications that access the same Active Directory data store will always share the same user data.

.NET Framework
Available since 2.0
Return to top
Show: