ProfilePropertySettingsとは? わかりやすく解説

ProfilePropertySettings クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

ProfilePropertySettings クラスを使用すると、構成ファイルの profiles セクションにプログラムからアクセスして変更できます。このクラスは継承できません。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public NotInheritable Class
 ProfilePropertySettings
    Inherits ConfigurationElement
Dim instance As ProfilePropertySettings
public sealed class ProfilePropertySettings
 : ConfigurationElement
public ref class ProfilePropertySettings sealed
 : public ConfigurationElement
public final class ProfilePropertySettings
 extends ConfigurationElement
public final class ProfilePropertySettings
 extends ConfigurationElement
解説解説
使用例使用例

ProfilePropertySettings オブジェクトのコレクションが格納されている PropertySettings プロパティ値にアクセスする方法を次のコード例に示します。このコード例は、ProfileSection クラスのトピックで取り上げているコード例の一部分です。

' Display all current root ProfilePropertySettings.
Console.WriteLine("Current Root ProfilePropertySettings:")
Dim rootPPSCtr As Integer
 = 0
For Each rootPPS As ProfilePropertySettings
 In profileSection.PropertySettings
    Console.WriteLine("  {0}: ProfilePropertySetting '{1}'",
 ++rootPPSCtr, _
        rootPPS.Name)
Next
// Display all current root ProfilePropertySettings.
Console.WriteLine("Current Root ProfilePropertySettings:");
int rootPPSCtr = 0;
foreach (ProfilePropertySettings rootPPS in
 profileSection.PropertySettings)
{
    Console.WriteLine("  {0}: ProfilePropertySetting '{1}'", ++rootPPSCtr
,
        rootPPS.Name);
}
継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
    System.Web.Configuration.ProfilePropertySettings
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ProfilePropertySettings メンバ
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
ProfilePropertySettingsCollection

ProfilePropertySettings コンストラクタ (String, Boolean, SerializationMode, String, String, String, Boolean, String)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定した名前と設定を使用して、ProfilePropertySettings クラスの新しいインスタンスを初期化します。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

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 _
)
Dim name As String
Dim readOnly As Boolean
Dim serializeAs As SerializationMode
Dim providerName As String
Dim defaultValue As String
Dim profileType As String
Dim allowAnonymous As Boolean
Dim customProviderData As String

Dim instance As New ProfilePropertySettings(name,
 readOnly, serializeAs, providerName, defaultValue, profileType,
 allowAnonymous, customProviderData)
public ProfilePropertySettings (
    string name,
    bool readOnly,
    SerializationMode serializeAs,
    string providerName,
    string defaultValue,
    string profileType,
    bool allowAnonymous,
    string customProviderData
)
public:
ProfilePropertySettings (
    String^ name, 
    bool readOnly, 
    SerializationMode serializeAs, 
    String^ providerName, 
    String^ defaultValue, 
    String^ profileType, 
    bool allowAnonymous, 
    String^ customProviderData
)
public ProfilePropertySettings (
    String name, 
    boolean readOnly, 
    SerializationMode serializeAs, 
    String providerName, 
    String defaultValue, 
    String profileType, 
    boolean allowAnonymous, 
    String customProviderData
)
public function ProfilePropertySettings (
    name : String, 
    readOnly : boolean, 
    serializeAs : SerializationMode, 
    providerName : String, 
    defaultValue : String, 
    profileType : String, 
    allowAnonymous : boolean, 
    customProviderData : String
)

パラメータ

name

ProfilePropertySettings オブジェクトの一意の名前。

readOnly

動的に生成された ProfileCommon クラスの関連付けられているプロパティを読み取り専用にする必要があることを示す場合は true。それ以外の場合は false。

serializeAs

SerializationMode 値の 1 つ。

providerName

Providers プロパティから取得したプロバイダ名、または空の文字列 ("")。

defaultValue

生成されたページの Profile クラスの名前付きプロパティに使用される既定値が格納された文字列。

profileType

有効な型参照または空の文字列。

allowAnonymous

動的に生成された ProfileCommon クラスの関連付けられているプロパティで匿名ユーザーをサポートする必要があることを示す場合は true。匿名ユーザーが名前付きプロパティを変更できないようにする場合は false。

customProviderData

プロパティに関連付けられているプロバイダが使用するプロバイダ固有の情報が格納された文字列。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ProfilePropertySettings クラス
ProfilePropertySettings メンバ
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
SerializationMode

ProfilePropertySettings コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定した名前を使用して、ProfilePropertySettings クラスの新しいインスタンスを初期化します。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim name As String

Dim instance As New ProfilePropertySettings(name)
public ProfilePropertySettings (
    string name
)
public:
ProfilePropertySettings (
    String^ name
)
public ProfilePropertySettings (
    String name
)
public function ProfilePropertySettings (
    name : String
)

パラメータ

name

ProfilePropertySettings オブジェクトの一意の名前。

解説解説

このコンストラクタに使用される既定の設定を次の表に示します。

設定

既定値

AllowAnonymous

false.

DefaultValue

空の文字列 ("")。

ReadOnly

false.

SerializeAs

ProviderSpecific.

Type

空の文字列 ("")。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ProfilePropertySettings クラス
ProfilePropertySettings メンバ
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
ProfileSection
PropertySettings

ProfilePropertySettings コンストラクタ

ProfilePropertySettings クラスの新しいインスタンスを初期化します。 ProfileSection PropertySettings
オーバーロードの一覧オーバーロードの一覧

名前 説明
ProfilePropertySettings (String) 指定した名前を使用して、ProfilePropertySettings クラスの新しいインスタンスを初期化します。
ProfilePropertySettings (String, Boolean, SerializationMode, String, String, String, Boolean, String) 指定した名前と設定を使用して、ProfilePropertySettings クラスの新しいインスタンスを初期化します。
参照参照

関連項目

ProfilePropertySettings クラス
ProfilePropertySettings メンバ
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
ProfileSection
PropertySettings

ProfilePropertySettings プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ AllowAnonymous 動的に生成された ProfileCommon クラスの関連付けられているプロパティを匿名ユーザーが設定できるかどうかを示す値を取得または設定します。
パブリック プロパティ CustomProviderData プロファイル プロパティのプロバイダに対するカスタム データの文字列を取得または設定します。
パブリック プロパティ DefaultValue 動的に生成された ProfileCommon クラスの関連付けられているプロパティに使用される既定値を取得または設定します。
パブリック プロパティ ElementInformation  ConfigurationElement オブジェクトのカスタマイズできない情報と機能を格納する ElementInformation オブジェクトを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockAllAttributesExcept  ロックされている属性のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockAllElementsExcept  ロックされている要素のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockAttributes  ロックされている属性のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockElements  ロックされている要素のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockItem  要素がロックされているかどうかを示す値を取得または設定します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ Name ProfilePropertySettings オブジェクトの名前、および動的に生成された ProfileCommon クラスの関連付けられているプロパティを取得または設定します。
パブリック プロパティ Provider 名前付きプロパティのシリアル化に使用されるプロバイダの名前を取得または設定します。
パブリック プロパティ ReadOnly 動的に生成された ProfileCommon クラスの関連付けられているプロパティが読み取り専用かどうかを決定する値を取得または設定します。
パブリック プロパティ SerializeAs 動的に生成された ProfileCommon クラスの関連付けられているプロパティに使用されるシリアル化メソッドを取得または設定します。
パブリック プロパティ Type 動的に生成された ProfileCommon クラスの関連付けられているプロパティの型の名前を設定または取得します。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ ElementProperty  ConfigurationElement オブジェクト自体を表す ConfigurationElementProperty オブジェクトを取得します。 ( ConfigurationElement から継承されます。)
プロテクト プロパティ EvaluationContext  ConfigurationElement オブジェクトの ContextInformation オブジェクトを取得します。 ( ConfigurationElement から継承されます。)
プロテクト プロパティ Item  オーバーロードされます。 この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。 ( ConfigurationElement から継承されます。)
プロテクト プロパティ Properties  プロパティのコレクションを取得します。 ( ConfigurationElement から継承されます。)
参照参照

関連項目

ProfilePropertySettings クラス
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
ProfilePropertySettingsCollection

ProfilePropertySettings メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド DeserializeElement  構成ファイルから XML を読み取ります。 ( ConfigurationElement から継承されます。)
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド Init  ConfigurationElement オブジェクトを初期状態に設定します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド InitializeDefault  ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド IsModified  派生クラスに実装された場合、この構成要素が最後の保存または読み込み以降に変更されたかどうかを示します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド ListErrors  この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 ( Object から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedAttribute  逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedElement  逆シリカル化中に不明な要素が発生したかどうかを示す値を取得します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド OnRequiredPropertyNotFound  必須プロパティが見つからなかったかどうかを示す値を取得します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド PostDeserialize  逆シリアル化後に呼び出されます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド PreSerialize  シリアル化前に呼び出されます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド Reset  ConfigurationElement オブジェクトの内部状態 (ロックやプロパティ コレクションなど) をリセットします。 ( ConfigurationElement から継承されます。)
プロテクト メソッド ResetModified  派生クラスに実装された場合、IsModified メソッドの値を false にリセットします。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SerializeElement  派生クラスに実装されている場合、この構成要素の内容を構成ファイルに書き込みます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SerializeToXmlElement  派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SetPropertyValue  プロパティを指定した値に設定します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SetReadOnly  ConfigurationElement オブジェクトおよびすべてのサブ要素に IsReadOnly プロパティを設定します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド Unmerge  保存しないすべての値を削除するには、ConfigurationElement オブジェクトを変更します。 ( ConfigurationElement から継承されます。)
参照参照

関連項目

ProfilePropertySettings クラス
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
ProfilePropertySettingsCollection

ProfilePropertySettings メンバ

ProfilePropertySettings クラスを使用すると、構成ファイルの profiles セクションにプログラムからアクセスして変更できます。このクラスは継承できません。

ProfilePropertySettings データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ProfilePropertySettings オーバーロードされます。 ProfilePropertySettings クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ AllowAnonymous 動的に生成された ProfileCommon クラスの関連付けられているプロパティを匿名ユーザーが設定できるかどうかを示す値を取得または設定します。
パブリック プロパティ CustomProviderData プロファイル プロパティのプロバイダに対するカスタム データの文字列を取得または設定します。
パブリック プロパティ DefaultValue 動的に生成された ProfileCommon クラスの関連付けられているプロパティに使用される既定値を取得または設定します。
パブリック プロパティ ElementInformation  ConfigurationElement オブジェクトのカスタマイズできない情報と機能を格納する ElementInformation オブジェクトを取得します。 (ConfigurationElement から継承されます。)
パブリック プロパティ LockAllAttributesExcept  ロックされている属性のコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック プロパティ LockAllElementsExcept  ロックされている要素のコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック プロパティ LockAttributes  ロックされている属性のコレクションを取得します。 (ConfigurationElement から継承されます。)
パブリック プロパティ LockElements  ロックされている要素のコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック プロパティ LockItem  要素がロックされているかどうかを示す値を取得または設定します。(ConfigurationElement から継承されます。)
パブリック プロパティ Name ProfilePropertySettings オブジェクトの名前、および動的に生成された ProfileCommon クラスの関連付けられているプロパティを取得または設定します。
パブリック プロパティ Provider 名前付きプロパティのシリアル化に使用されるプロバイダの名前を取得または設定します。
パブリック プロパティ ReadOnly 動的に生成された ProfileCommon クラスの関連付けられているプロパティが読み取り専用かどうかを決定する値を取得または設定します。
パブリック プロパティ SerializeAs 動的に生成された ProfileCommon クラスの関連付けられているプロパティに使用されるシリアル化メソッドを取得または設定します。
パブリック プロパティ Type 動的に生成された ProfileCommon クラスの関連付けられているプロパティの型の名前を設定または取得します。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ ElementProperty  ConfigurationElement オブジェクト自体を表す ConfigurationElementProperty オブジェクトを取得します。(ConfigurationElement から継承されます。)
プロテクト プロパティ EvaluationContext  ConfigurationElement オブジェクトの ContextInformation オブジェクトを取得します。(ConfigurationElement から継承されます。)
プロテクト プロパティ Item  オーバーロードされます。 この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。(ConfigurationElement から継承されます。)
プロテクト プロパティ Properties  プロパティのコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド DeserializeElement  構成ファイルから XML を読み取ります。 (ConfigurationElement から継承されます。)
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
プロテクト メソッド Init  ConfigurationElement オブジェクトを初期状態に設定します。 (ConfigurationElement から継承されます。)
プロテクト メソッド InitializeDefault  ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。 (ConfigurationElement から継承されます。)
プロテクト メソッド IsModified  派生クラスに実装された場合、この構成要素が最後の保存または読み込み以降に変更されたかどうかを示します。 (ConfigurationElement から継承されます。)
プロテクト メソッド ListErrors  この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。 (ConfigurationElement から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedAttribute  逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。 (ConfigurationElement から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedElement  逆シリカル化中に不明な要素が発生したかどうかを示す値を取得します。 (ConfigurationElement から継承されます。)
プロテクト メソッド OnRequiredPropertyNotFound  必須プロパティが見つからなかったかどうかを示す値を取得します。 (ConfigurationElement から継承されます。)
プロテクト メソッド PostDeserialize  逆シリアル化後に呼び出されます。 (ConfigurationElement から継承されます。)
プロテクト メソッド PreSerialize  シリアル化前に呼び出されます。 (ConfigurationElement から継承されます。)
プロテクト メソッド Reset  ConfigurationElement オブジェクトの内部状態 (ロックやプロパティ コレクションなど) をリセットします。 (ConfigurationElement から継承されます。)
プロテクト メソッド ResetModified  派生クラスに実装された場合、IsModified メソッドの値を false にリセットします。 (ConfigurationElement から継承されます。)
プロテクト メソッド SerializeElement  派生クラスに実装されている場合、この構成要素の内容を構成ファイルに書き込みます。 (ConfigurationElement から継承されます。)
プロテクト メソッド SerializeToXmlElement  派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。 (ConfigurationElement から継承されます。)
プロテクト メソッド SetPropertyValue  プロパティを指定した値に設定します。 (ConfigurationElement から継承されます。)
プロテクト メソッド SetReadOnly  ConfigurationElement オブジェクトおよびすべてのサブ要素に IsReadOnly プロパティを設定します。 (ConfigurationElement から継承されます。)
プロテクト メソッド Unmerge  保存しないすべての値を削除するには、ConfigurationElement オブジェクトを変更します。 (ConfigurationElement から継承されます。)
参照参照

関連項目

ProfilePropertySettings クラス
System.Web.Configuration 名前空間
ProfileSection
PropertySettings
ProfilePropertySettingsCollection



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ProfilePropertySettings」の関連用語

ProfilePropertySettingsのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ProfilePropertySettingsのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS