PropertyInformationCollection 클래스
정의
PropertyInformation 개체의 컬렉션을 포함합니다.Contains a collection of PropertyInformation objects. 이 클래스는 상속될 수 없습니다.This class cannot be inherited.
public ref class PropertyInformationCollection sealed : System::Collections::Specialized::NameObjectCollectionBase
public sealed class PropertyInformationCollection : System.Collections.Specialized.NameObjectCollectionBase
[System.Serializable]
public sealed class PropertyInformationCollection : System.Collections.Specialized.NameObjectCollectionBase
type PropertyInformationCollection = class
inherit NameObjectCollectionBase
[<System.Serializable>]
type PropertyInformationCollection = class
inherit NameObjectCollectionBase
Public NotInheritable Class PropertyInformationCollection
Inherits NameObjectCollectionBase
- 상속
- 특성
예제
다음 코드 예제를 사용 하는 방법에 설명 합니다 PropertyInformationCollection 클래스입니다.The following code example demonstrates how to use the PropertyInformationCollection class.
// Create EllementInformation object.
ElementInformation elementInfo =
configSection.ElementInformation;
// Create a PropertyInformationCollection object.
PropertyInformationCollection propertyInfoCollection =
elementInfo.Properties;
// Create a PropertyInformation object.
PropertyInformation myPropertyInfo =
propertyInfoCollection["enabled"];
// Display the property value.
Console.WriteLine
("anonymousIdentification Section - Enabled: {0}",
myPropertyInfo.Value);
' Create EllementInformation object.
Dim elementInfo As ElementInformation = _
configSection.ElementInformation()
' Create a PropertyInformationCollection object.
Dim propertyInfoCollection As PropertyInformationCollection = _
elementInfo.Properties()
' Create a PropertyInformation object.
Dim myPropertyInfo As PropertyInformation = _
propertyInfoCollection("enabled")
' Display the property value.
Console.WriteLine _
("anonymousIdentification Section - Enabled: {0}", _
myPropertyInfo.Value)
설명
개체에는 PropertyInformationCollection 개체의 컬렉션이 포함 되어 있습니다 PropertyInformation .The PropertyInformationCollection object contains a collection of PropertyInformation objects. PropertyInformation개체는 구성 내의 개별 특성에 대 한 세부 정보를 포함 합니다.A PropertyInformation object contains the details of an individual attribute within the configuration. PropertyInformationCollection개체는 연결 된 개체에서 파생 됩니다 NameObjectCollectionBase .The PropertyInformationCollection object is derived from the associated NameObjectCollectionBase object.
속성
Count |
NameObjectCollectionBase 인스턴스에 포함된 키/값 쌍의 수를 가져옵니다.Gets the number of key/value pairs contained in the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
IsReadOnly |
NameObjectCollectionBase 인스턴스가 읽기 전용인지 여부를 나타내는 값을 가져오거나 설정합니다.Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only. (다음에서 상속됨 NameObjectCollectionBase) |
Item[String] |
지정된 속성 이름에 따라 컬렉션에서 PropertyInformation 개체를 가져옵니다.Gets the PropertyInformation object in the collection, based on the specified property name. |
Keys |
NameObjectCollectionBase.KeysCollection 인스턴스의 모든 키를 포함하는 NameObjectCollectionBase 인스턴스를 가져옵니다.Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
메서드
BaseAdd(String, Object) |
지정한 키와 값을 가지는 엔트리를 NameObjectCollectionBase 인스턴스에 추가합니다.Adds an entry with the specified key and value into the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseClear() |
NameObjectCollectionBase 인스턴스에서 모든 엔트리를 제거합니다.Removes all entries from the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseGet(Int32) |
NameObjectCollectionBase 인스턴스의 지정한 인덱스에서 엔트리의 값을 가져옵니다.Gets the value of the entry at the specified index of the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseGet(String) |
NameObjectCollectionBase 인스턴스에서 지정한 키를 갖는 첫 번째 엔트리 값을 가져옵니다.Gets the value of the first entry with the specified key from the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseGetAllKeys() |
NameObjectCollectionBase 인스턴스의 모든 키를 포함하는 String 배열을 반환합니다.Returns a String array that contains all the keys in the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseGetAllValues() |
NameObjectCollectionBase 인스턴스의 모든 값을 포함하는 Object 배열을 반환합니다.Returns an Object array that contains all the values in the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseGetAllValues(Type) |
NameObjectCollectionBase 인스턴스의 모든 값을 포함하는 지정한 형식의 배열을 반환합니다.Returns an array of the specified type that contains all the values in the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseGetKey(Int32) |
NameObjectCollectionBase 인스턴스의 지정한 인덱스에서 엔트리의 키를 가져옵니다.Gets the key of the entry at the specified index of the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseHasKeys() |
NameObjectCollectionBase 인스턴스에 |
BaseRemove(String) |
NameObjectCollectionBase 인스턴스에서 지정한 키를 가지는 엔트리를 제거합니다.Removes the entries with the specified key from the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseRemoveAt(Int32) |
NameObjectCollectionBase 인스턴스의 지정한 인덱스에서 엔트리를 제거합니다.Removes the entry at the specified index of the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseSet(Int32, Object) |
NameObjectCollectionBase 인스턴스의 지정한 인덱스에서 엔트리의 값을 설정합니다.Sets the value of the entry at the specified index of the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
BaseSet(String, Object) |
지정한 키를 갖는 엔트리가 NameObjectCollectionBase 인스턴스에 있으면 첫 번째 엔트리의 값을 설정하고, 그러지 않으면 지정한 키와 값을 갖는 엔트리를 NameObjectCollectionBase 인스턴스에 추가합니다.Sets the value of the first entry with the specified key in the NameObjectCollectionBase instance, if found; otherwise, adds an entry with the specified key and value into the NameObjectCollectionBase instance. (다음에서 상속됨 NameObjectCollectionBase) |
CopyTo(PropertyInformation[], Int32) |
대상 배열의 지정된 인덱스에서 시작하여 전체 PropertyInformationCollection 컬렉션을 호환되는 1차원 Array에 복사합니다.Copies the entire PropertyInformationCollection collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetEnumerator() |
이 IEnumerator 컬렉션을 반복하는 데 사용되는 PropertyInformationCollection 개체를 가져옵니다.Gets an IEnumerator object, which is used to iterate through this PropertyInformationCollection collection. |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetObjectData(SerializationInfo, StreamingContext) |
SerializationInfo 인스턴스를 serialize하는 데 필요한 데이터로 PropertyInformationCollection 개체를 채웁니다.Populates a SerializationInfo object with the data needed to serialize the PropertyInformationCollection instance. |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
OnDeserialization(Object) |
ISerializable 인터페이스를 구현하고, deserialization이 완료되면 deserialization 이벤트를 발생시킵니다.Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (다음에서 상속됨 NameObjectCollectionBase) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
명시적 인터페이스 구현
ICollection.CopyTo(Array, Int32) |
대상 배열의 지정된 인덱스에서 시작하여 전체 NameObjectCollectionBase을 호환되는 1차원 Array에 복사합니다.Copies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. (다음에서 상속됨 NameObjectCollectionBase) |
ICollection.IsSynchronized |
NameObjectCollectionBase 개체에 대한 액세스가 동기화되어 스레드로부터 안전하게 보호되는지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether access to the NameObjectCollectionBase object is synchronized (thread safe). (다음에서 상속됨 NameObjectCollectionBase) |
ICollection.SyncRoot |
NameObjectCollectionBase 개체에 대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다.Gets an object that can be used to synchronize access to the NameObjectCollectionBase object. (다음에서 상속됨 NameObjectCollectionBase) |
확장 메서드
Cast<TResult>(IEnumerable) |
IEnumerable의 요소를 지정된 형식으로 캐스팅합니다.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
지정된 형식에 따라 IEnumerable의 요소를 필터링합니다.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
쿼리를 병렬화할 수 있도록 합니다.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
IEnumerable을 IQueryable로 변환합니다.Converts an IEnumerable to an IQueryable. |