Udostępnij za pośrednictwem


ProfileManager.AddDynamicProfileProperty(ProfilePropertySettings) Metoda

Definicja

Programowo dodaje właściwość profilu.

public:
 static void AddDynamicProfileProperty(System::Web::Configuration::ProfilePropertySettings ^ property);
public static void AddDynamicProfileProperty (System.Web.Configuration.ProfilePropertySettings property);
static member AddDynamicProfileProperty : System.Web.Configuration.ProfilePropertySettings -> unit
Public Shared Sub AddDynamicProfileProperty (property As ProfilePropertySettings)

Parametry

property
ProfilePropertySettings

Ustawienia właściwości do dodania.

Uwagi

Ta metoda jest funkcjonalnie równoważna do dodawania właściwości do profile sekcji pliku konfiguracji. Aby wywołać tę metodę w celu dodania właściwości profilu, należy wykonać wywołanie w metodzie oznaczonej atrybutem PreApplicationStartMethodAttribute .

Dotyczy