ProfilePropertySettings クラス

定義

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

public ref class ProfilePropertySettings sealed : System::Configuration::ConfigurationElement
public sealed class ProfilePropertySettings : System.Configuration.ConfigurationElement
type ProfilePropertySettings = class
    inherit ConfigurationElement
Public NotInheritable Class ProfilePropertySettings
Inherits ConfigurationElement
継承
ProfilePropertySettings

次のコード例は、オブジェクトのProfilePropertySettingsコレクションをPropertySettings含む プロパティ値にアクセスする方法を示しています。 このコード例は、ProfileSection クラスのために提供されている大規模な例の一部です。

// 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);
}
' 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

注釈

クラスはProfilePropertySettings、構成ファイルの セクションのサブセクションprofileに追加された個々のプロパティの定義をプログラムで作成、アクセス、および変更するproperties方法を提供します。

構成ファイルの セクションでは profile 、ユーザー プロファイルのスキーマを指定します。 実行時に、ASP.NET コンパイル システムは セクションで指定された情報をprofile使用して、 からProfileBase派生した というProfileCommonクラスを生成します。 ProfileCommonクラス定義は、構成ファイルの セクションのpropertiesサブセクションで定義されているprofileプロパティに基づいています。 このクラスのインスタンスはユーザー プロファイルごとに作成され、 プロパティを使用してコード内の個々のプロファイル値に HttpContext.Profile アクセスできます。 プロファイル プロパティの詳細については、「 ASP.NET プロファイル プロパティの概要」を参照してください。 ASP.NET 2.0 に追加されたプロファイル機能の詳細については、「 ASP.NET プロファイル プロパティの概要」を参照してください。

コンストラクター

ProfilePropertySettings(String)

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

ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String)

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

プロパティ

AllowAnonymous

動的に生成された ProfileCommon クラスの関連付けられているプロパティを匿名ユーザーが設定できるかどうかを示す値を取得または設定します。

CurrentConfiguration

現在の Configuration インスタンスが属している構成階層を表す最上位の ConfigurationElement インスタンスへの参照を取得します。

(継承元 ConfigurationElement)
CustomProviderData

プロファイル プロパティのプロバイダーに対するカスタム データの文字列を取得または設定します。

DefaultValue

動的に生成された ProfileCommon クラスの関連付けられているプロパティに使用される既定値を取得または設定します。

ElementInformation

ElementInformation オブジェクトのカスタマイズできない情報と機能を格納する ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
ElementProperty

ConfigurationElementProperty オブジェクト自体を表す ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
EvaluationContext

ContextInformation オブジェクトの ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
HasContext

CurrentConfiguration プロパティが null であるかどうかを示す値を取得します。

(継承元 ConfigurationElement)
Item[ConfigurationProperty]

この構成要素のプロパティまたは属性を取得または設定します。

(継承元 ConfigurationElement)
Item[String]

この構成要素のプロパティ、属性、または子要素を取得または設定します。

(継承元 ConfigurationElement)
LockAllAttributesExcept

ロックされている属性のコレクションを取得します。

(継承元 ConfigurationElement)
LockAllElementsExcept

ロックされている要素のコレクションを取得します。

(継承元 ConfigurationElement)
LockAttributes

ロックされている属性のコレクションを取得します。

(継承元 ConfigurationElement)
LockElements

ロックされている要素のコレクションを取得します。

(継承元 ConfigurationElement)
LockItem

要素がロックされているかどうかを示す値を取得または設定します。

(継承元 ConfigurationElement)
Name

ProfilePropertySettings オブジェクトの名前、および動的に生成された ProfileCommon クラスの関連付けられているプロパティを取得または設定します。

Properties

プロパティのコレクションを取得します。

(継承元 ConfigurationElement)
Provider

名前付きプロパティのシリアル化に使用されるプロバイダーの名前を取得または設定します。

ReadOnly

動的に生成された ProfileCommon クラスの関連付けられているプロパティが読み取り専用かどうかを決定する値を取得または設定します。

SerializeAs

動的に生成された ProfileCommon クラスの関連付けられているプロパティに使用されるシリアル化メソッドを取得または設定します。

Type

動的に生成された ProfileCommon クラスの関連付けられているプロパティの型の名前を設定または取得します。

メソッド

DeserializeElement(XmlReader, Boolean)

構成ファイルから XML を読み取ります。

(継承元 ConfigurationElement)
Equals(Object)

現在の ConfigurationElement インスタンスを、指定したオブジェクトと比較します。

(継承元 ConfigurationElement)
GetHashCode()

現在の ConfigurationElement インスタンスを表す一意の値を取得します。

(継承元 ConfigurationElement)
GetTransformedAssemblyString(String)

指定されたアセンブリ名を変換して返します。

(継承元 ConfigurationElement)
GetTransformedTypeString(String)

指定された型名を変換して返します。

(継承元 ConfigurationElement)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
Init()

ConfigurationElement オブジェクトを初期状態に設定します。

(継承元 ConfigurationElement)
InitializeDefault()

ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。

(継承元 ConfigurationElement)
IsModified()

派生クラスに実装された場合、この構成要素が最後の保存または読み込み以降に変更されたかどうかを示します。

(継承元 ConfigurationElement)
IsReadOnly()

ConfigurationElement オブジェクトが読み取り専用かどうかを示す値を取得します。

(継承元 ConfigurationElement)
ListErrors(IList)

この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。

(継承元 ConfigurationElement)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
OnDeserializeUnrecognizedAttribute(String, String)

逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。

(継承元 ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)

逆シリカル化中に不明な要素が発生したかどうかを示す値を取得します。

(継承元 ConfigurationElement)
OnRequiredPropertyNotFound(String)

必要なプロパティが見つからないと例外がスローされます。

(継承元 ConfigurationElement)
PostDeserialize()

逆シリアル化後に呼び出されます。

(継承元 ConfigurationElement)
PreSerialize(XmlWriter)

シリアル化前に呼び出されます。

(継承元 ConfigurationElement)
Reset(ConfigurationElement)

ConfigurationElement オブジェクトの内部状態 (ロックやプロパティ コレクションなど) をリセットします。

(継承元 ConfigurationElement)
ResetModified()

IsModified() メソッドの値が派生クラスに実装されたときに、false にリセットします。

(継承元 ConfigurationElement)
SerializeElement(XmlWriter, Boolean)

派生クラスに実装されている場合、この構成要素の内容を構成ファイルに書き込みます。

(継承元 ConfigurationElement)
SerializeToXmlElement(XmlWriter, String)

派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。

(継承元 ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean)

プロパティを指定した値に設定します。

(継承元 ConfigurationElement)
SetReadOnly()

IsReadOnly() オブジェクトおよびすべてのサブ要素に ConfigurationElement プロパティを設定します。

(継承元 ConfigurationElement)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

保存しないすべての値を削除するには、ConfigurationElement オブジェクトを変更します。

(継承元 ConfigurationElement)

適用対象

こちらもご覧ください