FeatureCollectionExtensions.GetRequiredFeature Yöntem

Tanım

Aşırı Yüklemeler

GetRequiredFeature(IFeatureCollection, Type)

İstenen özelliği koleksiyondan yeniden deneme. Özellik yoksa bir InvalidOperationException oluşturur.

GetRequiredFeature<TFeature>(IFeatureCollection)

İstenen özelliği koleksiyondan yeniden deneme. Özellik yoksa bir InvalidOperationException oluşturur.

GetRequiredFeature(IFeatureCollection, Type)

İstenen özelliği koleksiyondan yeniden deneme. Özellik yoksa bir InvalidOperationException oluşturur.

public static object GetRequiredFeature (this Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection, Type key);
static member GetRequiredFeature : Microsoft.AspNetCore.Http.Features.IFeatureCollection * Type -> obj
<Extension()>
Public Function GetRequiredFeature (featureCollection As IFeatureCollection, key As Type) As Object

Parametreler

featureCollection
IFeatureCollection

özellik koleksiyonu

key
Type

Özellik anahtarı.

Döndürülenler

İstenen özellik.

Şunlara uygulanır

GetRequiredFeature<TFeature>(IFeatureCollection)

İstenen özelliği koleksiyondan yeniden deneme. Özellik yoksa bir InvalidOperationException oluşturur.

public static TFeature GetRequiredFeature<TFeature> (this Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection);
static member GetRequiredFeature : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> 'Feature
<Extension()>
Public Function GetRequiredFeature(Of TFeature) (featureCollection As IFeatureCollection) As TFeature

Tür Parametreleri

TFeature

Özellik anahtarı.

Parametreler

Döndürülenler

TFeature

İstenen özellik.

Şunlara uygulanır