ProfileManager.AddDynamicProfileProperty(ProfilePropertySettings) Methode

Definitie

Hiermee voegt u programmatisch een profieleigenschap toe.

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)

Parameters

property
ProfilePropertySettings

De eigenschapsinstellingen die moeten worden toegevoegd.

Opmerkingen

Deze methode is functioneel gelijk aan het toevoegen van de eigenschap aan de profile sectie van het configuratiebestand. Als u deze methode wilt aanroepen om de profieleigenschap toe te voegen, moet u de aanroep uitvoeren in een methode die is gemarkeerd met het PreApplicationStartMethodAttribute kenmerk.

Van toepassing op