ManagementObjectCollection 클래스
정의
WMI를 통해 검색된 다른 관리 개체 컬렉션을 나타냅니다.Represents different collections of management objects retrieved through WMI. 이 컬렉션의 개체는 ManagementBaseObject 및 ManagementObject를 비롯한 ManagementClass 파생 형식입니다.The objects in this collection are of ManagementBaseObject-derived types, including ManagementObject and ManagementClass. 컬렉션은 ManagementObjectSearcher를 통해 실행된 WMI 쿼리의 결과이거나, 해당 형식을 나타내는 ManagementClass를 통해 검색된 지정된 형식의 관리 개체 열거형일 수 있습니다.The collection can be the result of a WMI query executed through a ManagementObjectSearcher, or an enumeration of management objects of a specified type retrieved through a ManagementClass representing that type. 뿐만 아니라 지정된 방식으로 특정 관리 개체와 관련된 관리 개체의 컬렉션일 수도 있습니다. 이 경우 컬렉션은 GetRelated() 같은 메서드를 통해 검색됩니다.In addition, this can be a collection of management objects related in a specified way to a specific management object - in this case the collection would be retrieved through a method such as GetRelated(). 컬렉션은 ManagementObjectCollection.ManagementObjectEnumerator를 사용하여 검토할 수 있습니다. 또한 컬렉션의 개체는 다양한 관리 작업을 위해 검사하거나 조작할 수 있습니다.The collection can be walked using the ManagementObjectCollection.ManagementObjectEnumerator and objects in it can be inspected or manipulated for various management tasks.
public ref class ManagementObjectCollection : IDisposable, System::Collections::ICollection
public class ManagementObjectCollection : IDisposable, System.Collections.ICollection
type ManagementObjectCollection = class
interface ICollection
interface IEnumerable
interface IDisposable
Public Class ManagementObjectCollection
Implements ICollection, IDisposable
- 상속
-
ManagementObjectCollection
- 구현
속성
Count |
컬렉션에 있는 개체의 수를 나타내는 값을 가져옵니다.Gets a value indicating the number of objects in the collection. |
IsSynchronized |
개체가 동기화되어 스레드로부터 안전하게 보호되는지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether the object is synchronized (thread-safe). |
SyncRoot |
동기화에 사용될 개체를 가져옵니다.Gets the object to be used for synchronization. |
메서드
CopyTo(Array, Int32) |
컬렉션을 배열에 복사합니다.Copies the collection to an array. |
CopyTo(ManagementBaseObject[], Int32) |
컬렉션의 항목을 ManagementBaseObject 배열에 복사합니다.Copies the items in the collection to a ManagementBaseObject array. |
Dispose() |
이 개체와 연결된 리소스를 해제합니다.Releases resources associated with this object. 이 메서드가 호출된 후 이 개체를 사용하면 ObjectDisposedException이 throw됩니다.After this method has been called, an attempt to use this object will result in an ObjectDisposedException being thrown. |
Equals(Object) |
지정한 개체와 현재 개체가 같은지 여부를 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
Finalize() |
개체가 보유하고 있는 리소스를 삭제합니다.Disposes of resources the object is holding. 개체의 소멸자입니다.This is the destructor for the object. 종료자는 소멸자 구문을 사용하여 표현됩니다.Finalizers are expressed using destructor syntax. |
GetEnumerator() |
컬렉션의 열거자를 반환합니다.Returns the enumerator for the collection. |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
명시적 인터페이스 구현
IEnumerable.GetEnumerator() |
IEnumerator를 반복하는 ManagementObjectCollection를 반환합니다.Returns an IEnumerator that iterates through the ManagementObjectCollection. |
확장 메서드
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. |