Sdílet prostřednictvím


GraphPropertyCollection Třída

Definice

public ref class GraphPropertyCollection : System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::GraphProperty ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphProperty ^>
public class GraphPropertyCollection : System.Collections.Generic.ICollection<Microsoft.VisualStudio.GraphModel.GraphProperty>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphProperty>
type GraphPropertyCollection = class
    interface ICollection<GraphProperty>
    interface seq<GraphProperty>
    interface IEnumerable
Public Class GraphPropertyCollection
Implements ICollection(Of GraphProperty), IEnumerable(Of GraphProperty)
Dědičnost
GraphPropertyCollection
Implementuje

Konstruktory

GraphPropertyCollection(GraphSchema)

Vlastnosti

Count

Získá počet prvků obsažených v kolekci GraphProperties

IsReadOnly

Získá hodnotu označující, jestli je kolekce GraphProperties jen pro čtení.

Properties

Získá GraphProperties.

Schema

Metody

Add(GraphProperty)

Přidá položku do kolekce GraphProperties.

AddNewProperty(String, Type)

Zaregistruje nový GraphProperty s výchozím tvůrcem metadat.

AddNewProperty(String, Type, Func<GraphMetadata>)

Zaregistruje novou vlastnost GraphProperty.

Clear()

Odebere všechny položky z kolekce.

Contains(GraphProperty)

Určuje, jestli kolekce obsahuje konkrétní hodnotu.

CopyTo(GraphProperty[], Int32)

Zkopíruje prvky kolekce do System.Array počínaje konkrétním indexem System.Array.

GetEnumerator()

Vrátí enumerátor pro vlastnosti grafu.

Remove(GraphProperty)

Odebere první výskyt určitého objektu z kolekce.

Explicitní implementace rozhraní

IEnumerable<GraphProperty>.GetEnumerator()

Vrátí enumerátor pro vlastnosti grafu.

Metody rozšíření

EmptyIfNull<T>(IEnumerable<T>)

Pokud nemá hodnotu null, vraťte tento výčet. V případě, že je null, vraťte prázdný výčet.

Platí pro