AuthorizationStoreRoleProvider.ScopeName Property

Gets or sets the scope name for the authorization store.

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

No code example is currently available or this language may not be supported.
/** @property */
public String get_ScopeName ()

/** @property */
public void set_ScopeName (String value)

public function get ScopeName () : String

public function set ScopeName (value : String)

Not applicable.

Property Value

The scope name for the authorization store.

The ScopeName property can be set using the scopeName configuration attribute for the provider instance in the providers section of the roleManager configuration section.

Caution noteCaution:

Because a single default role provider instance is used for all of the requests served by an HttpApplication object, you can have multiple requests executing concurrently and attempting to set the ScopeName property value. The ScopeName property is not thread safe for multiple writes, and changing the ScopeName property value can result in unexpected behavior when there are multiple users of an application. We recommend that you avoid writing code that allows users to set the ScopeName property unless you must. An example of an application where setting the ScopeName property may be required is an administrative application that manages role data for multiple applications. Such an application should be a single-user application and not a Web application.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: