ProfilePropertySettingsCollection クラス

定義

ProfilePropertySettingsCollection オブジェクトのセットを格納します。

public ref class ProfilePropertySettingsCollection : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfilePropertySettings))]
public class ProfilePropertySettingsCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfilePropertySettings))>]
type ProfilePropertySettingsCollection = class
    inherit ConfigurationElementCollection
Public Class ProfilePropertySettingsCollection
Inherits ConfigurationElementCollection
継承
ProfilePropertySettingsCollection
派生
属性

次のコード例は、ProfilePropertySettingsCollection クラスのインスタンスである PropertySettings プロパティを使用する方法を示しています。 このコード例は、 ProfileSection クラスに提供されるより大きな例の一部です。

// Display all current ProfileGroupSettings.
Console.WriteLine("Current ProfileGroupSettings:");
int PGSCtr = 0;
foreach (ProfileGroupSettings propGroups in profileSection.PropertySettings.GroupSettings)
{
    Console.WriteLine("  {0}: ProfileGroupSetting '{1}'", ++PGSCtr,
        propGroups.Name);
    int PPSCtr = 0;
    foreach (ProfilePropertySettings props in propGroups.PropertySettings)
    {
        Console.WriteLine("    {0}: ProfilePropertySetting '{1}'", ++PPSCtr,
            props.Name);
    }
}
' Display all current ProfileGroupSettings.
Console.WriteLine("Current ProfileGroupSettings:")
Dim PGSCtr As Integer = 0
For Each propGroups As ProfileGroupSettings In profileSection.PropertySettings.GroupSettings
                    Console.WriteLine("  {0}: ProfileGroupSettings '{1}'", ++PGSCtr, _
        propGroups.Name)
    Dim PPSCtr As Integer = 0
    For Each props As ProfilePropertySettings In propGroups.PropertySettings
        Console.WriteLine("    {0}: ProfilePropertySetting '{1}'", ++PPSCtr, _
            props.Name)
    Next
Next

注釈

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

コンストラクター

名前 説明
ProfilePropertySettingsCollection()

ProfilePropertySettingsCollection クラスの新しいインスタンスを作成します。

プロパティ

名前 説明
AddElementName

派生クラスでオーバーライドされたときにConfigurationElementの追加操作に関連付けるConfigurationElementCollectionの名前を取得または設定します。

(継承元 ConfigurationElementCollection)
AllKeys

コレクションに含まれるすべての ProfileSection オブジェクトの名前を含む配列を返します。

AllowClear

<clear> 要素がProfilePropertySettings オブジェクトとして有効かどうかを示す値を取得します。

ClearElementName

派生クラスでオーバーライドされたときにConfigurationElementのクリア操作に関連付けるConfigurationElementCollectionの名前を取得または設定します。

(継承元 ConfigurationElementCollection)
CollectionType

ConfigurationElementCollectionの型を取得します。

(継承元 ConfigurationElementCollection)
Count

コレクション内の要素の数を取得します。

(継承元 ConfigurationElementCollection)
CurrentConfiguration

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

(継承元 ConfigurationElement)
ElementInformation

ElementInformation オブジェクトのカスタマイズ不可能な情報と機能を含むConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
ElementName

派生クラスでオーバーライドされたときに、構成ファイル内の要素のこのコレクションを識別するために使用される名前を取得します。

(継承元 ConfigurationElementCollection)
ElementProperty

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

(継承元 ConfigurationElement)
EmitClear

コレクションがクリアされているかどうかを示す値を取得または設定します。

(継承元 ConfigurationElementCollection)
EvaluationContext

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

(継承元 ConfigurationElement)
HasContext

CurrentConfiguration プロパティがnullされているかどうかを示す値を取得します。

(継承元 ConfigurationElement)
IsSynchronized

コレクションへのアクセスが同期されているかどうかを示す値を取得します。

(継承元 ConfigurationElementCollection)
Item[ConfigurationProperty]

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

(継承元 ConfigurationElement)
Item[Int32]

指定したインデックス位置にある ProfilePropertySettings オブジェクトを取得または設定します。

Item[String]

指定した名前の ProfilePropertySettings オブジェクトを取得または設定します。

LockAllAttributesExcept

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

(継承元 ConfigurationElement)
LockAllElementsExcept

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

(継承元 ConfigurationElement)
LockAttributes

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

(継承元 ConfigurationElement)
LockElements

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

(継承元 ConfigurationElement)
LockItem

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

(継承元 ConfigurationElement)
Properties

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

RemoveElementName

派生クラスでオーバーライドされたときにConfigurationElementの削除操作に関連付けるConfigurationElementCollectionの名前を取得または設定します。

(継承元 ConfigurationElementCollection)
SyncRoot

ConfigurationElementCollectionへのアクセスを同期するために使用するオブジェクトを取得します。

(継承元 ConfigurationElementCollection)
ThrowOnDuplicate

重複するオブジェクトを作成しようとした場合にエラーをスローするかどうかを示す値を取得します。

メソッド

名前 説明
Add(ProfilePropertySettings)

ProfilePropertySettings オブジェクトをコレクションに追加します。

BaseAdd(ConfigurationElement, Boolean)

構成要素コレクションに構成要素を追加します。

(継承元 ConfigurationElementCollection)
BaseAdd(ConfigurationElement)

構成要素を ConfigurationElementCollectionに追加します。

(継承元 ConfigurationElementCollection)
BaseAdd(Int32, ConfigurationElement)

構成要素コレクションに構成要素を追加します。

(継承元 ConfigurationElementCollection)
BaseClear()

すべての構成要素オブジェクトをコレクションから削除します。

(継承元 ConfigurationElementCollection)
BaseGet(Int32)

指定したインデックス位置にある構成要素を取得します。

(継承元 ConfigurationElementCollection)
BaseGet(Object)

指定したキーを持つ構成要素を返します。

(継承元 ConfigurationElementCollection)
BaseGetAllKeys()

ConfigurationElementCollectionに含まれるすべての構成要素のキーの配列を返します。

(継承元 ConfigurationElementCollection)
BaseGetKey(Int32)

指定したインデックス位置にある ConfigurationElement のキーを取得します。

(継承元 ConfigurationElementCollection)
BaseIndexOf(ConfigurationElement)

指定した ConfigurationElementのインデックスを示します。

(継承元 ConfigurationElementCollection)
BaseIsRemoved(Object)

指定したキーを持つ ConfigurationElementConfigurationElementCollectionから削除されたかどうかを示します。

(継承元 ConfigurationElementCollection)
BaseRemove(Object)

コレクションから ConfigurationElement を削除します。

(継承元 ConfigurationElementCollection)
BaseRemoveAt(Int32)

指定したインデックス位置にある ConfigurationElement を削除します。

(継承元 ConfigurationElementCollection)
Clear()

コレクションからすべての ProfilePropertySettings オブジェクトを削除します。

CopyTo(ConfigurationElement[], Int32)

ConfigurationElementCollectionの内容を配列にコピーします。

(継承元 ConfigurationElementCollection)
CreateNewElement()

派生クラスでオーバーライドされた場合は、新しい ConfigurationElementを作成します。

CreateNewElement(String)

派生クラスでオーバーライドされたときに新しい ConfigurationElement を作成します。

(継承元 ConfigurationElementCollection)
DeserializeElement(XmlReader, Boolean)

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

(継承元 ConfigurationElement)
Equals(Object)

ConfigurationElementCollectionを指定したオブジェクトと比較します。

(継承元 ConfigurationElementCollection)
Get(Int32)

指定したインデックス位置にある ProfileSection オブジェクトを返します。

Get(String)

指定した名前の ProfileSection オブジェクトを返します。

GetElementKey(ConfigurationElement)

指定した構成要素のキーを取得します。

GetEnumerator()

IEnumeratorを反復処理するために使用されるConfigurationElementCollectionを取得します。

(継承元 ConfigurationElementCollection)
GetHashCode()

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

(継承元 ConfigurationElementCollection)
GetKey(Int32)

指定したインデックス位置にある ProfilePropertySettings の名前を取得します。

GetTransformedAssemblyString(String)

指定したアセンブリ名の変換されたバージョンを返します。

(継承元 ConfigurationElement)
GetTransformedTypeString(String)

指定した型名の変換されたバージョンを返します。

(継承元 ConfigurationElement)
GetType()

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

(継承元 Object)
IndexOf(ProfilePropertySettings)

指定した ProfilePropertySettings オブジェクトのインデックスを返します。

Init()

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

(継承元 ConfigurationElement)
InitializeDefault()

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

(継承元 ConfigurationElement)
IsElementName(String)

指定した ConfigurationElementConfigurationElementCollectionに存在するかどうかを示します。

(継承元 ConfigurationElementCollection)
IsElementRemovable(ConfigurationElement)

指定した ConfigurationElementConfigurationElementCollectionから削除できるかどうかを示します。

(継承元 ConfigurationElementCollection)
IsModified()

この ConfigurationElementCollection が最後に保存されてから変更されたか、派生クラスでオーバーライドされたときに読み込まれたかを示します。

(継承元 ConfigurationElementCollection)
IsReadOnly()

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

(継承元 ConfigurationElementCollection)
ListErrors(IList)

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

(継承元 ConfigurationElement)
MemberwiseClone()

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

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

逆シリアル化中に不明な属性が検出されたかどうかを示す値を取得します。

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

構成ファイルから認識されない構成要素の読み取りを処理し、要素を処理できない場合に構成システムが例外をスローします。

OnRequiredPropertyNotFound(String)

必要なプロパティが見つからない場合に例外をスローします。

(継承元 ConfigurationElement)
PostDeserialize()

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

(継承元 ConfigurationElement)
PreSerialize(XmlWriter)

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

(継承元 ConfigurationElement)
Remove(String)

ProfilePropertySettings オブジェクトをコレクションから削除します。

RemoveAt(Int32)

指定したインデックス位置にある ProfilePropertySettings オブジェクトをコレクションから削除します。

Reset(ConfigurationElement)

派生クラスでオーバーライドされると、 ConfigurationElementCollection を変更されていない状態にリセットします。

(継承元 ConfigurationElementCollection)
ResetModified()

派生クラスでオーバーライドされたときに、 IsModified() プロパティの値を false にリセットします。

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

派生クラスでオーバーライドされると、構成データを構成ファイルの XML 要素に書き込みます。

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

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

(継承元 ConfigurationElement)
Set(ProfilePropertySettings)

指定した ProfilePropertySettings オブジェクトをコレクションに追加します。

SetPropertyValue(ConfigurationProperty, Object, Boolean)

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

(継承元 ConfigurationElement)
SetReadOnly()

IsReadOnly() オブジェクトとすべてのサブ要素のConfigurationElementCollection プロパティを設定します。

(継承元 ConfigurationElementCollection)
ToString()

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

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

構成階層のさまざまなレベルから構成情報をマージする効果を元に戻します。

(継承元 ConfigurationElementCollection)

明示的なインターフェイスの実装

名前 説明
ICollection.CopyTo(Array, Int32)

ConfigurationElementCollectionを配列にコピーします。

(継承元 ConfigurationElementCollection)

拡張メソッド

名前 説明
AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryableに変換します。

Cast<TResult>(IEnumerable)

IEnumerable の要素を指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定した型に基づいて、IEnumerable の要素をフィルター処理します。

適用対象

こちらもご覧ください