ProfilePropertySettings コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ProfilePropertySettings クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| ProfilePropertySettings(String) |
指定した名前を使用して、 ProfilePropertySettings クラスの新しいインスタンスを初期化します。 |
| ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String) |
指定した名前と設定を使用して、 ProfilePropertySettings クラスの新しいインスタンスを初期化します。 |
ProfilePropertySettings(String)
指定した名前を使用して、 ProfilePropertySettings クラスの新しいインスタンスを初期化します。
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)
パラメーター
- name
- String
ProfilePropertySettings オブジェクトの一意の名前。
注釈
次の表に、このコンストラクターに使用される既定の設定を示します。
| Setting | デフォルト値 |
|---|---|
| AllowAnonymous |
false。 |
| DefaultValue | 空の文字列 ("")。 |
| ReadOnly |
false。 |
| SerializeAs | ProviderSpecific。 |
| Type | 空の文字列 ("")。 |
こちらもご覧ください
適用対象
ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String)
指定した名前と設定を使用して、 ProfilePropertySettings クラスの新しいインスタンスを初期化します。
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)
パラメーター
- name
- String
ProfilePropertySettings オブジェクトの一意の名前。
- readOnly
- Boolean
true 動的に生成された ProfileCommon クラス内の関連付けられたプロパティを読み取り専用にする必要があることを示す場合は。それ以外の場合は false。
- serializeAs
- SerializationMode
SerializationMode値の 1 つ。
- defaultValue
- String
生成されたページ プロファイル クラスの名前付きプロパティに使用される既定値を含む文字列。
- profileType
- String
有効な型参照または空の文字列。
- allowAnonymous
- Boolean
true 動的に生成された ProfileCommon クラス内の関連付けられたプロパティが匿名ユーザーをサポートする必要があることを示す場合は false。それ以外の場合は、匿名ユーザーが名前付きプロパティを変更できないことを示します。
- customProviderData
- String
プロパティに関連付けられているプロバイダーによって使用されるプロバイダー固有の情報を含む文字列。
注釈
実行時に、ASP.NET コンパイル システムは、構成ファイルの profile セクションで指定された情報を使用して、ProfileCommonから派生した ProfileBase というクラスを生成します。 このクラスを使用すると、個々のユーザー プロファイルの値にアクセスして変更できます。
ProfileCommon クラス定義は、構成ファイルの properties セクションの profile サブセクションで定義されているプロパティに基づいています。
ProfilePropertySettings クラスのインスタンスを作成するときに指定するパラメーター値は、ProfileCommon クラスの関連付けられたプロパティの定義に使用されます。
プロファイルプロパティの詳細については、「プロファイルプロパティ の概要 ASP.NET 参照してください。