EndpointMetadataCollection Class

Definition

A collection of arbitrary metadata associated with an endpoint.

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

Remarks

EndpointMetadataCollection instances contain a list of metadata items of arbitrary types. The metadata items are stored as an ordered collection with items arranged in ascending order of precedence.

Constructors

EndpointMetadataCollection(IEnumerable<Object>)

Creates a new EndpointMetadataCollection.

EndpointMetadataCollection(Object[])

Creates a new EndpointMetadataCollection.

Fields

Empty

An empty EndpointMetadataCollection.

Properties

Count

Gets the count of metadata items.

Item[Int32]

Gets the item at index.

Methods

GetEnumerator()

Gets an IEnumerator of all metadata items.

GetMetadata<T>()

Gets the most significant metadata item of type T.

GetOrderedMetadata<T>()

Gets the metadata items of type T in ascending order of precedence.

GetRequiredMetadata<T>()

Gets the most significant metadata item of type T. Throws an InvalidOperationException if the metadata is not found.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an IEnumerator of all metadata items.

IEnumerable<Object>.GetEnumerator()

Gets an IEnumerator<T> of all metadata items.

Applies to