GraphPropertyCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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)
- 繼承
-
GraphPropertyCollection
- 實作
建構函式
GraphPropertyCollection(GraphSchema) |
屬性
Count |
取得 GraphProperties 集合中包含的項目數目 |
IsReadOnly |
取得值,指出 GraphProperties 集合是否為唯讀 |
Properties |
取得 GraphProperties |
Schema |
方法
Add(GraphProperty) |
將專案加入至 GraphProperties 集合 |
AddNewProperty(String, Type) |
向預設元數據建立者註冊新的 GraphProperty。 |
AddNewProperty(String, Type, Func<GraphMetadata>) |
註冊新的 GraphProperty |
Clear() |
將所有項目從集合中移除。 |
Contains(GraphProperty) |
判斷集合是否包含特定值 |
CopyTo(GraphProperty[], Int32) |
從特定的 System.Array 索引開始,將集合的項目複製到 System.Array |
GetEnumerator() |
傳回圖形屬性的列舉值 |
Remove(GraphProperty) |
從集合中移除第一個出現的特定物件 |
明確介面實作
IEnumerable<GraphProperty>.GetEnumerator() |
傳回圖形屬性的列舉值 |
擴充方法
EmptyIfNull<T>(IEnumerable<T>) |
如果不是 Null,則傳回這個列舉。 如果是 null,則傳回空列舉。 |