다음을 통해 공유


GraphNodeIdCollection 클래스

GraphNodeIds 목록이 들어 있습니다. GraphNodeId의 .Value 부분 안에 저장될 수 있습니다. 만들어지는 즉시 변경 불가능한 목록입니다. 이 클래스는 목록을 문자열로 serialize하는 데 필요한 형식을 모르기 때문에 여기서는 추상 클래스를 사용합니다.

파생된 클래스는 이를 알 수 있습니다.

상속 계층 구조

Object
  Microsoft.VisualStudio.GraphModel.GraphNodeIdCollection

네임스페이스:  Microsoft.VisualStudio.GraphModel
어셈블리:  Microsoft.VisualStudio.GraphModel(Microsoft.VisualStudio.GraphModel.dll)

구문

‘선언
Public Class GraphNodeIdCollection _
    Implements IEnumerable, IEnumerable(Of GraphNodeId),  _
    IComparable
public class GraphNodeIdCollection : IEnumerable, 
    IEnumerable<GraphNodeId>, IComparable
public ref class GraphNodeIdCollection : IEnumerable, 
    IEnumerable<GraphNodeId^>, IComparable
type GraphNodeIdCollection =  
    class 
        interface IEnumerable 
        interface IEnumerable<GraphNodeId>
        interface IComparable 
    end
public class GraphNodeIdCollection implements IEnumerable, IEnumerable<GraphNodeId>, IComparable

GraphNodeIdCollection 형식에서는 다음과 같은 멤버를 노출합니다.

생성자

  이름 설명
Public 메서드 GraphNodeIdCollection GraphNodeIdCollection을 생성합니다.

위쪽

속성

  이름 설명
Public 속성 HomogeneousElements 배열 요소 인지 동종입니다 (배열 항목 이름이 같으면 모든 더 필요한 반복 예: Name=[item1,item2,item3]) 이종 시스템-예: (Name1 = Name2 item1, item2, Name3 = item3 =))
Public 속성 Item
Public 속성 Length 목록의 항목 수를 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 CompareTo
Public 메서드 Equals 이 두 목록을 비교하여 모든 항목이 같은지 여부를 확인합니다. 이 경우 항목이 목록 내부에서 같은 순서에 있다고 가정합니다. 이는 성능 최적화로, 순서가 다를 경우 다른 오버로드를 의미하는 메서드 인수에 필요합니다. (Object.Equals(Object)을(를) 재정의함)
Protected 메서드 Finalize 가비지 수집기가 회수하기 전에 개체가 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨)
Public 메서드 GetHashCode 이 컬렉션에 대한 해시 코드를 계산하고 캐시합니다. (Object.GetHashCode을(를) 재정의함)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드 GetValueByName<T> 첫 번째 포함 GraphNodeId에서 이름과 일치하는 값을 가져옵니다.
Protected 메서드 MemberwiseClone 현재 Object의 부분 복사본을 만듭니다. (Object에서 상속됨)
Public 메서드 ToString 이 GraphNodeId 컬렉션을 문자열로 가져옵니다. (Object.ToString을(를) 재정의함)

위쪽

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현Private 메서드 IEnumerable<GraphNodeId>.GetEnumerator
명시적 인터페이스 구현Private 메서드 IEnumerable.GetEnumerator 열거자를 가져옵니다.따라서 _array에 직접 액세스할 수 없게 됩니다.

위쪽

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.VisualStudio.GraphModel 네임스페이스