GraphPropertyCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GraphPropertyCollection(GraphSchema) |
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. |