Sdílet prostřednictvím


FeatureCollectionExtensions.GetRequiredFeature Metoda

Definice

Přetížení

GetRequiredFeature(IFeatureCollection, Type)

Načte požadovanou funkci z kolekce. Vyvolá InvalidOperationException, pokud tato funkce není k dispozici.

GetRequiredFeature<TFeature>(IFeatureCollection)

Načte požadovanou funkci z kolekce. Vyvolá InvalidOperationException, pokud tato funkce není k dispozici.

GetRequiredFeature(IFeatureCollection, Type)

Zdroj:
FeatureCollectionExtensions.cs
Zdroj:
FeatureCollectionExtensions.cs
Zdroj:
FeatureCollectionExtensions.cs

Načte požadovanou funkci z kolekce. Vyvolá InvalidOperationException, pokud tato funkce není k dispozici.

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

Parametry

featureCollection
IFeatureCollection

kolekce funkcí

key
Type

Klíč funkce.

Návraty

Požadovaná funkce.

Platí pro

GetRequiredFeature<TFeature>(IFeatureCollection)

Zdroj:
FeatureCollectionExtensions.cs
Zdroj:
FeatureCollectionExtensions.cs
Zdroj:
FeatureCollectionExtensions.cs

Načte požadovanou funkci z kolekce. Vyvolá InvalidOperationException, pokud tato funkce není k dispozici.

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

Parametry typu

TFeature

Klíč funkce.

Parametry

Návraty

TFeature

Požadovaná funkce.

Platí pro