語言

ProfileManager.AddDynamicProfileProperty(ProfilePropertySettings) 方法

定義

以程式化方式新增一個設定檔屬性。

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)

參數

property
ProfilePropertySettings

屬性設定將被加入。

備註

此方法在功能上等同於將屬性加入設定檔的區 profile 段。 要呼叫此方法來新增 profile 屬性,您必須在標有屬性 PreApplicationStartMethodAttribute 的方法中呼叫。

適用於