AuthorizationStoreRoleProvider.Initialize(String, NameValueCollection) Methode

Definitie

Initialiseert de rolprovider autorisatiebeheer met de eigenschapswaarden die zijn opgegeven in het configuratiebestand van de ASP.NET-toepassing. Deze methode is niet bedoeld om rechtstreeks vanuit uw code te worden gebruikt.

public:
 override void Initialize(System::String ^ name, System::Collections::Specialized::NameValueCollection ^ config);
public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config);
override this.Initialize : string * System.Collections.Specialized.NameValueCollection -> unit
Public Overrides Sub Initialize (name As String, config As NameValueCollection)

Parameters

name
String

De naam van het AuthorizationStoreRoleProvider exemplaar dat moet worden geïnitialiseerd.

config
NameValueCollection

Een NameValueCollection met de namen en waarden van configuratieopties voor de rolprovider.

Uitzonderingen

config is null.

Het kenmerk connectionStringName is leeg of bestaat niet in de configuratiesectie connectionStrings-element (ASP.NET-instellingenschema).

– of –

De geconfigureerde applicationName tekens zijn langer dan 256 tekens.

– of –

De configuratie voor dit AuthorizationStoreRoleProvider exemplaar bevat een niet-herkend kenmerk.

De ASP.NET-toepassing wordt niet uitgevoerd op Low vertrouwensrelatie of hoger.

Opmerkingen

De methode Initialize initialiseert de AuthorizationStoreRoleProvider met de eigenschapswaarden die zijn opgegeven in het configuratiebestand van de ASP.NET toepassing (Web.config) en is niet bedoeld om rechtstreeks vanuit uw code te worden gebruikt.

Van toepassing op

Zie ook