FeatureCollection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
의 기본 구현입니다 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 . |
적용 대상
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기