FeatureCollection 클래스

정의

의 기본 구현입니다 IFeatureCollection.

public ref class FeatureCollection : Microsoft::AspNetCore::Http::Features::IFeatureCollection, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Type ^, System::Object ^>>
public class FeatureCollection : Microsoft.AspNetCore.Http.Features.IFeatureCollection, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,object>>
type FeatureCollection = class
    interface IFeatureCollection
    interface seq<KeyValuePair<Type, obj>>
    interface IEnumerable
Public Class FeatureCollection
Implements IEnumerable(Of KeyValuePair(Of Type, Object)), IFeatureCollection
상속
FeatureCollection
구현

생성자

FeatureCollection()

FeatureCollection의 새 인스턴스를 초기화합니다.

FeatureCollection(IFeatureCollection)

지정된 기본값을 사용하여 의 FeatureCollection 새 instance 초기화합니다.

FeatureCollection(Int32)

지정된 초기 용량을 가지는 FeatureCollection의 새 인스턴스를 초기화합니다.

속성

IsReadOnly

컬렉션을 수정할 수 있는지를 나타냅니다.

Item[Type]

지정된 기능을 가져오거나 설정합니다. null 값을 설정하면 기능이 제거됩니다.

Revision

수정할 때마다 증가하며 캐시된 결과를 확인하는 데 사용할 수 있습니다.

메서드

Get<TFeature>()

컬렉션에서 요청된 기능을 검색합니다.

GetEnumerator()

의 기본 구현입니다 IFeatureCollection.

Set<TFeature>(TFeature)

컬렉션에서 지정된 기능을 설정합니다.

명시적 인터페이스 구현

IEnumerable.GetEnumerator()

의 기본 구현입니다 IFeatureCollection.

확장 메서드

GetRequiredFeature(IFeatureCollection, Type)

컬렉션에서 요청된 기능을 다시 시도합니다. 기능이 없으면 을 throw합니다 InvalidOperationException .

GetRequiredFeature<TFeature>(IFeatureCollection)

컬렉션에서 요청된 기능을 다시 시도합니다. 기능이 없으면 을 throw합니다 InvalidOperationException .

적용 대상