IFeatureCollection Interface

Definition

Represents a collection of HTTP features.

public interface class IFeatureCollection : System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Type ^, System::Object ^>>
public interface IFeatureCollection : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,object>>
type IFeatureCollection = interface
    interface seq<KeyValuePair<Type, obj>>
    interface IEnumerable
Public Interface IFeatureCollection
Implements IEnumerable(Of KeyValuePair(Of Type, Object))
Derived
Implements

Properties

IsReadOnly

Indicates if the collection can be modified.

Item[Type]

Gets or sets a given feature. Setting a null value removes the feature.

Revision

Incremented for each modification and can be used to verify cached results.

Methods

Get<TFeature>()

Retrieves the requested feature from the collection.

Set<TFeature>(TFeature)

Sets the given feature in the collection.

Extension Methods

GetRequiredFeature(IFeatureCollection, Type)

Retrieves the requested feature from the collection. Throws an InvalidOperationException if the feature is not present.

GetRequiredFeature<TFeature>(IFeatureCollection)

Retrieves the requested feature from the collection. Throws an InvalidOperationException if the feature is not present.

Applies to