Sdílet prostřednictvím


ProfilePropertySettings Konstruktory

Definice

Inicializuje novou instanci ProfilePropertySettings třídy.

Přetížení

ProfilePropertySettings(String)

Inicializuje novou instanci ProfilePropertySettings třídy se zadaným názvem.

ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String)

Inicializuje novou instanci ProfilePropertySettings třídy se zadaným názvem a nastavením.

ProfilePropertySettings(String)

Inicializuje novou instanci ProfilePropertySettings třídy se zadaným názvem.

public:
 ProfilePropertySettings(System::String ^ name);
public ProfilePropertySettings (string name);
new System.Web.Configuration.ProfilePropertySettings : string -> System.Web.Configuration.ProfilePropertySettings
Public Sub New (name As String)

Parametry

name
String

Jedinečný název objektu ProfilePropertySettings .

Poznámky

Následující tabulka ukazuje výchozí nastavení, která se používají pro tento konstruktor.

Nastavení Výchozí hodnota
AllowAnonymous false.
DefaultValue Prázdný řetězec ("").
ReadOnly false.
SerializeAs ProviderSpecific.
Type Prázdný řetězec ("").

Viz také

Platí pro

ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String)

Inicializuje novou instanci ProfilePropertySettings třídy se zadaným názvem a nastavením.

public:
 ProfilePropertySettings(System::String ^ name, bool readOnly, System::Web::Configuration::SerializationMode serializeAs, System::String ^ providerName, System::String ^ defaultValue, System::String ^ profileType, bool allowAnonymous, System::String ^ customProviderData);
public ProfilePropertySettings (string name, bool readOnly, System.Web.Configuration.SerializationMode serializeAs, string providerName, string defaultValue, string profileType, bool allowAnonymous, string customProviderData);
new System.Web.Configuration.ProfilePropertySettings : string * bool * System.Web.Configuration.SerializationMode * string * string * string * bool * string -> System.Web.Configuration.ProfilePropertySettings
Public Sub New (name As String, readOnly As Boolean, serializeAs As SerializationMode, providerName As String, defaultValue As String, profileType As String, allowAnonymous As Boolean, customProviderData As String)

Parametry

name
String

Jedinečný název objektu ProfilePropertySettings .

readOnly
Boolean

true k označení, že přidružená vlastnost v dynamicky generované ProfileCommon třídě by měla být jen pro čtení; v opačném případě false.

serializeAs
SerializationMode

Jedna z SerializationMode hodnot.

providerName
String

Název zprostředkovatele z Providers vlastnosti nebo prázdný řetězec ("").

defaultValue
String

Řetězec obsahující výchozí hodnotu použitou pro pojmenovanou vlastnost ve vygenerované stránce Profile třídy.

profileType
String

Platný odkaz na typ nebo prázdný řetězec.

allowAnonymous
Boolean

true k označení přidružené vlastnosti v dynamicky generované ProfileCommon třídě by měla podporovat anonymní uživatele; v opačném případě , aby bylo možné indikovat, falseže anonymní uživatelé nemohou změnit pojmenovanou vlastnost.

customProviderData
String

Řetězec obsahující informace specifické pro zprostředkovatele používané zprostředkovatelem přidruženým k vlastnosti.

Poznámky

Za běhu ASP.NET kompilační systém používá informace zadané v profile části konfiguračního souboru k vygenerování třídy s názvem ProfileCommon, která je odvozena z ProfileBase. Třída umožňuje přístup k hodnotám jednotlivých profilů uživatelů a jejich úpravu.

Definice ProfileCommon třídy je založena na vlastnostech definovaných v properties pododdílu oddílu profile konfiguračního souboru. Hodnoty parametrů, které zadáte při vytváření instance ProfilePropertySettings třídy, budou použity k definování přidružené vlastnosti ve ProfileCommon třídě.

Další informace o vlastnostech profilu najdete v tématu ASP.NET Přehled vlastností profilu.

Viz také

Platí pro