Op Englesch liesen

Deelen iwwer


GraphPropertyCollection Class

Definition

C++
public ref class GraphPropertyCollection : System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::GraphProperty ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphProperty ^>
Inheritance
GraphPropertyCollection
Implements

Constructors

Properties

Count

Gets the number of elements contained in the GraphProperties collection

IsReadOnly

Gets a value indicating whether the GraphProperties collection is Read-only

Properties

Gets the GraphProperties

Schema

Methods

Add(GraphProperty)

Adds an item to the GraphProperties collection

AddNewProperty(String, Type, Func<GraphMetadata>)

Registers a new GraphProperty

AddNewProperty(String, Type)

Registers a new GraphProperty with the default metadata creator.

Clear()

Removes all items from the collection

Contains(GraphProperty)

Determines whether the collection contains a specific value

CopyTo(GraphProperty[], Int32)

Copies the elements of the collection to a System.Array, starting at a particular System.Array index

GetEnumerator()

Returns an enumerator for the graph properties

Remove(GraphProperty)

Removes the first occurrence of a specific object from the collection

Explicit Interface Implementations

IEnumerable<GraphProperty>.GetEnumerator()

Returns an enumerator for the graph properties

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to

Produkt Versiounen
Visual Studio SDK 2017, 2019, 2022