EndpointMetadataCollection 類別

定義

與端點相關聯的任意元資料集合。

public ref class EndpointMetadataCollection sealed : System::Collections::Generic::IEnumerable<System::Object ^>, System::Collections::Generic::IReadOnlyCollection<System::Object ^>, System::Collections::Generic::IReadOnlyList<System::Object ^>
public sealed class EndpointMetadataCollection : System.Collections.Generic.IEnumerable<object>, System.Collections.Generic.IReadOnlyCollection<object>, System.Collections.Generic.IReadOnlyList<object>
type EndpointMetadataCollection = class
    interface IReadOnlyList<obj>
    interface seq<obj>
    interface IEnumerable
    interface IReadOnlyCollection<obj>
type EndpointMetadataCollection = class
    interface seq<obj>
    interface IEnumerable
    interface IReadOnlyCollection<obj>
    interface IReadOnlyList<obj>
Public NotInheritable Class EndpointMetadataCollection
Implements IEnumerable(Of Object), IReadOnlyCollection(Of Object), IReadOnlyList(Of Object)
繼承
EndpointMetadataCollection
實作

備註

EndpointMetadataCollection 實例包含任意類型的中繼資料專案清單。 中繼資料專案會儲存為已排序的集合,並以優先順序遞增順序排列的專案。

建構函式

EndpointMetadataCollection(IEnumerable<Object>)

建立新的 EndpointMetadataCollection

EndpointMetadataCollection(Object[])

建立新的 EndpointMetadataCollection

欄位

Empty

空的 EndpointMetadataCollection

屬性

Count

取得中繼資料專案的計數。

Item[Int32]

取得 位於 index 的專案。

方法

GetEnumerator()

IEnumerator取得所有中繼資料專案的 。

GetMetadata<T>()

取得 類型 T 最重要的中繼資料專案。

GetOrderedMetadata<T>()

取得優先順序遞增的型 T 別中繼資料專案。

GetRequiredMetadata<T>()

取得 類型 T 最重要的中繼資料專案。 如果找不到中繼資料,則會擲回 InvalidOperationException

明確介面實作

IEnumerable.GetEnumerator()

IEnumerator取得所有中繼資料專案的 。

IEnumerable<Object>.GetEnumerator()

IEnumerator<T>取得所有中繼資料專案的 。

適用於