Compartir a través de


FeatureCollectionExtensions.GetRequiredFeature Método

Definición

Sobrecargas

GetRequiredFeature(IFeatureCollection, Type)

Recupera la característica solicitada de la colección. Produce un InvalidOperationException si la característica no está presente.

GetRequiredFeature<TFeature>(IFeatureCollection)

Recupera la característica solicitada de la colección. Produce un InvalidOperationException si la característica no está presente.

GetRequiredFeature(IFeatureCollection, Type)

Source:
FeatureCollectionExtensions.cs
Source:
FeatureCollectionExtensions.cs
Source:
FeatureCollectionExtensions.cs

Recupera la característica solicitada de la colección. Produce un InvalidOperationException si la característica no está presente.

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

Parámetros

featureCollection
IFeatureCollection

colección de características

key
Type

Clave de característica.

Devoluciones

Característica solicitada.

Se aplica a

GetRequiredFeature<TFeature>(IFeatureCollection)

Source:
FeatureCollectionExtensions.cs
Source:
FeatureCollectionExtensions.cs
Source:
FeatureCollectionExtensions.cs

Recupera la característica solicitada de la colección. Produce un InvalidOperationException si la característica no está presente.

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

Parámetros de tipo

TFeature

Clave de característica.

Parámetros

featureCollection
IFeatureCollection

El IFeatureCollection.

Devoluciones

TFeature

Característica solicitada.

Se aplica a