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 オブジェクトの一意の名前。
注釈
次の表は、このコンストラクターに使用される既定の設定を示しています。
| 設定 | Default value |
|---|---|
| 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
生成されたページの Profile クラスの名前付きプロパティに使用される既定値が格納された文字列。
- profileType
- String
有効な型参照または空の文字列。
- allowAnonymous
- Boolean
動的に生成された true クラスの関連付けられているプロパティで匿名ユーザーをサポートする必要があることを示す場合は ProfileCommon。匿名ユーザーが名前付きプロパティを変更できないようにする場合は false。
- customProviderData
- String
プロパティに関連付けられているプロバイダーが使用するプロバイダー固有の情報が格納された文字列。
注釈
実行時に、ASP.NET コンパイル システムは、構成ファイルの セクションでprofile指定された 情報を使用して、 からProfileBase派生した というProfileCommonクラスを生成します。 クラスを使用すると、個々のユーザー プロファイルの値にアクセスして変更できます。
ProfileCommonクラス定義は、構成ファイルの セクションのpropertiesサブセクションで定義されているprofileプロパティに基づいています。 クラスのインスタンス ProfilePropertySettings を作成するときに指定するパラメーター値は、 クラスに ProfileCommon 関連付けられたプロパティを定義するために使用されます。
プロファイル プロパティの詳細については、「 ASP.NET プロファイル プロパティの概要」を参照してください。