GraphNodeCollection 클래스

이 클래스는 노드의 컬렉션을 조작하기 위한 메서드를 제공합니다. 이 클래스는 열거할 때 노드를 추가하는 순서를 유지하지 않음으로써 나중에 임의의 순서로 다시 가져올 수 있도록 합니다.

상속 계층 구조

System.Object
  Microsoft.VisualStudio.GraphModel.GraphNodeCollection

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

구문

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

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

속성

  이름 설명
Public 속성 Containers 컨테이너인 모든 노드로 구성되어 있는 열거형을 반환합니다.
Public 속성 Count 컬렉션의 노드 수를 반환합니다.
Public 속성 Graph 이 노드 컬렉션과 연결된 그래프를 가져옵니다.
Public 속성 IsReadOnly System.Collections.Generic.ICollection이 읽기 전용인지 여부를 나타내는 값을 가져옵니다.
Public 속성 Item 지정된 ID를 사용하여 노드를 가져옵니다.같은 ID를 가진 다른 노드가 이미 존재 하는 경우 설정에 예외를 throw합니다.

위쪽

메서드

  이름 설명
Public 메서드 Add(GraphNode) 그래프에 링크를 추가하거나 기존 링크 개체와 병합
Public 메서드 Add(IEnumerable<GraphNode>) 지정한 집합에 있는 모든 노드를 추가합니다.
Public 메서드 Add(GraphNode, GraphNode%) 지정한 노드를 그래프에 추가합니다.
Public 메서드 Clear 이 컬렉션에서 모든 노드를 제거합니다.
Public 메서드 Contains 지정된 노드가 이 컬렉션에 있는지 확인
Public 메서드 CopyTo 특정 System.Array 인덱스에서 시작하는 System.Collections.Generic.ICollection의 요소를 System.Array에 복사합니다.
Public 메서드 Equals 지정한 Object가 현재 Object와 같은지 여부를 확인합니다. (Object에서 상속됨)
Protected 메서드 Finalize 가비지 수집에서 회수하기 전에 개체에서 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨)
Public 메서드 Get(String) 지정된 ID의 노드를 가져옵니다.
Public 메서드 Get(GraphNodeId)
Public 메서드 GetByCategory(array<String[]) 지정된 범주를 가진 그래프의 모든 노드를 반환합니다.
Public 메서드 GetByCategory(array<GraphCategory[]) 지정된 범주를 가진 그래프의 모든 노드를 반환합니다.
Public 메서드 GetByProperty 지정된 속성 값을 가진 그래프의 모든 노드를 반환합니다.
Public 메서드 GetEnumerator 이 컬렉션의 형식화된 열거자를 가져옵니다.
Public 메서드 GetFiltered
Public 메서드 GetHashCode 특정 형식에 대한 해시 함수 역할을 합니다. (Object에서 상속됨)
Public 메서드 GetOrCreate(String) 지정된 ID의 노드를 가져오려고 시도합니다.노드를 찾을 수 없으면 새 노드를 만듭니다.
Public 메서드 GetOrCreate(GraphNodeId)
Public 메서드 GetOrCreate(String, String, GraphCategory) 지정된 ID의 노드를 가져오려고 시도합니다.노드를 찾을 수 없으면 새 노드를 만듭니다.
Public 메서드 GetOrCreate(GraphNodeId, String, GraphCategory)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Protected 메서드 MemberwiseClone 현재 Object의 단순 복사본을 만듭니다. (Object에서 상속됨)
Public 메서드 Remove(String) 지정된 노드를 제거합니다.
Public 메서드 Remove(GraphNode) System.Collections.Generic.ICollection에서 첫 번째로 발생한 특정 개체를 제거합니다.
Public 메서드 Remove(IEnumerable<GraphNode>) 지정한 집합에 있는 모든 노드를 제거합니다.
Public 메서드 Remove(GraphNodeId)
Public 메서드 Remove(GraphNode, GraphNode%) 지정된 노드를 제거합니다.
Public 메서드 ToString 현재 개체를 나타내는 문자열을 반환합니다. (Object에서 상속됨)

위쪽

이벤트

  이름 설명
Public 이벤트 NodesUpdated NodesUpdated의 이벤트 구현입니다.

위쪽

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현Private 메서드 IEnumerable.GetEnumerator 이 컬렉션의 열거자를 가져옵니다.

위쪽

스레드로부터의 안전성

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

참고 항목

참조

Microsoft.VisualStudio.GraphModel 네임스페이스