Share via


GraphPropertyCollection Class

Definition

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)
Inheritance
GraphPropertyCollection
Implements

Constructors

Name Description
GraphPropertyCollection(GraphSchema)

Properties

Name Description
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

Name Description
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

Name Description
IEnumerable<GraphProperty>.GetEnumerator()

Returns an enumerator for the graph properties

Extension Methods

Name Description
EmptyIfNull<T>(IEnumerable<T>)

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

Applies to