FeatureCollection Class¶
- Namespace
Microsoft.AspNetCore.Http.Features
- Assemblies
- Microsoft.AspNetCore.Http.Features
Syntax¶
public class FeatureCollection : IFeatureCollection, IEnumerable<KeyValuePair<Type, object>>, IEnumerable
-
class
Microsoft.AspNetCore.Http.Features.
FeatureCollection
Constructors¶
-
FeatureCollection
()¶ public FeatureCollection()
-
FeatureCollection
(Microsoft.AspNetCore.Http.Features.IFeatureCollection) public FeatureCollection(IFeatureCollection defaults)
-
Methods¶
-
GetEnumerator
()¶ Return type: System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Type>> public IEnumerator<KeyValuePair<Type, object>> GetEnumerator()
-
Get<TFeature>
()¶ Return type: TFeature public TFeature Get<TFeature>()
-
Set<TFeature>
(TFeature)¶ public void Set<TFeature>(TFeature instance)
-
GetEnumerator
() Return type: System.Collections.IEnumerator IEnumerator IEnumerable.GetEnumerator()
-
Properties¶
-
Microsoft.AspNetCore.Http.Features.FeatureCollection.
IsReadOnly
¶ Return type: System.Boolean public bool IsReadOnly { get; }
-
Microsoft.AspNetCore.Http.Features.FeatureCollection.
Item[System.Type]
¶ Return type: System.Object public object this[Type key] { get; set; }
-
Microsoft.AspNetCore.Http.Features.FeatureCollection.
Revision
¶ Return type: System.Int32 public virtual int Revision { get; }
-