Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

SimpleRoleProvider.ApplicationName Property

Gets or sets the name of the application to store and retrieve role information for.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

public override string ApplicationName { get; set; }

Property Value

Type: System.String
The name of the application to store and retrieve role information for.

NoteNote:

If the SimpleRoleProvider class has been initialized through a call to WebSecurity.InitializeDatabaseConnection() method, this property is not supported and will throw a NotSupportedException exception. However, if WebSecurity.InitializeDatabaseConnection() method has not been called, and if you have configured your site to use the standard ASP.NET role provider, this property is passed through to the standard role provider. For more information, see the SimpleRoleProvider class overview.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2015 Microsoft