X509Certificate2Enumerator 클래스
정의
X509Certificate2Collection 개체에 대한 간단한 반복을 지원합니다.Supports a simple iteration over a X509Certificate2Collection object. 이 클래스는 상속될 수 없습니다.This class cannot be inherited.
public ref class X509Certificate2Enumerator sealed : System::Collections::IEnumerator
public sealed class X509Certificate2Enumerator : System.Collections.IEnumerator
type X509Certificate2Enumerator = class
interface IEnumerator
Public NotInheritable Class X509Certificate2Enumerator
Implements IEnumerator
- 상속
-
X509Certificate2Enumerator
- 구현
설명
열거자는 컬렉션에 있는 데이터에 대 한 읽기 전용 액세스를 제공 합니다.Enumerators provide read-only access to the data in the collection. 내부 컬렉션을 수정 하 여 열거자를 사용할 수 없습니다.Enumerators cannot be used to modify the underlying collection.
처음에 열거자는 컬렉션의 첫 번째 요소 앞에 배치됩니다.Initially, the enumerator is positioned before the first element in the collection. Reset 메서드 또한 다시이 위치로 열거자를 가져옵니다.The Reset method also brings the enumerator back to this position. 이 위치에서 속성을 호출 하면 Current 예외가 throw 됩니다.At this position, calling the Current property throws an exception. 따라서 호출 해야 합니다 MoveNext 해당 열거자의 값을 읽기 전에 컬렉션의 첫 번째 요소를 이동 하는 방법 Current합니다.Therefore, you must call the MoveNext method to advance the enumerator to the first element of the collection before reading the value of Current.
이 클래스는 인터페이스에서 상속 IEnumerator 됩니다.This class inherits from the IEnumerator interface. 컬렉션을 열거 하는 방법에 대 한 자세한 내용은을 참조 하십시오 IEnumerator .For more information about enumerating over a collection, see IEnumerator.
속성
Current |
X509Certificate2Collection 개체의 현재 요소를 가져옵니다.Gets the current element in the X509Certificate2Collection object. |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
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) |
MoveNext() |
X509Certificate2Collection 개체의 다음 요소로 열거자를 이동합니다.Advances the enumerator to the next element in the X509Certificate2Collection object. |
Reset() |
X509Certificate2Collection 개체의 첫 번째 요소 앞의 초기 위치로 열거자를 설정합니다.Sets the enumerator to its initial position, which is before the first element in the X509Certificate2Collection object. |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
명시적 인터페이스 구현
IEnumerator.Current |
이 멤버에 대한 설명은 Current를 참조하세요.For a description of this member, see Current. |
IEnumerator.MoveNext() |
이 멤버에 대한 설명은 MoveNext()를 참조하세요.For a description of this member, see MoveNext(). |
IEnumerator.Reset() |
이 멤버에 대한 설명은 Reset()를 참조하세요.For a description of this member, see Reset(). |