Auf Englisch lesen

Teilen über


OwinFeatureCollection Klasse

Definition

OWIN-Featuresammlung.

C#
public class OwinFeatureCollection : Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature, Microsoft.AspNetCore.Http.Features.IFeatureCollection, Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestIdentifierFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature, Microsoft.AspNetCore.Http.Features.IHttpResponseFeature, Microsoft.AspNetCore.Http.Features.IHttpSendFileFeature, Microsoft.AspNetCore.Http.Features.IHttpWebSocketFeature, Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature, Microsoft.AspNetCore.Owin.IOwinEnvironmentFeature, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,object>>
C#
public class OwinFeatureCollection : Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature, Microsoft.AspNetCore.Http.Features.IFeatureCollection, Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestIdentifierFeature, Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature, Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature, Microsoft.AspNetCore.Http.Features.IHttpResponseFeature, Microsoft.AspNetCore.Http.Features.IHttpWebSocketFeature, Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature, Microsoft.AspNetCore.Owin.IOwinEnvironmentFeature, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,object>>
Vererbung
OwinFeatureCollection
Implementiert

Konstruktoren

Eigenschaften

Environment

Dient zum Abrufen oder Festlegen von OWIN-Umgebungswerten.

IsReadOnly

Gibt an, ob die Auflistung geändert werden kann.

Item[Type]

Ruft ein bestimmtes Feature ab oder legt dieses fest. Wenn Sie einen NULL-Wert festlegen, wird das Feature entfernt.

Revision

Erhöht für jede Änderung und kann verwendet werden, um zwischengespeicherte Ergebnisse zu überprüfen.

SupportsWebSockets

Ruft ab oder legt fest, ob der zugrunde liegende Server WebSockets unterstützt. Dies ist standardmäßig aktiviert. Der Wert sollte für alle Anforderungen konsistent sein.

Methoden

Dispose()

OWIN-Featuresammlung.

Get(Type)

OWIN-Featuresammlung.

Get<TFeature>()

Ruft das angeforderte Feature aus der Auflistung ab.

GetEnumerator()

OWIN-Featuresammlung.

Set(Type, Object)

OWIN-Featuresammlung.

Set<TFeature>(TFeature)

Legt das angegebene Feature in der Auflistung fest.

Explizite Schnittstellenimplementierungen

IEnumerable.GetEnumerator()

OWIN-Featuresammlung.

IHttpAuthenticationFeature.Handler

OWIN-Featuresammlung.

IHttpAuthenticationFeature.User

OWIN-Featuresammlung.

IHttpConnectionFeature.ConnectionId

OWIN-Featuresammlung.

IHttpConnectionFeature.LocalIpAddress

OWIN-Featuresammlung.

IHttpConnectionFeature.LocalPort

OWIN-Featuresammlung.

IHttpConnectionFeature.RemoteIpAddress

OWIN-Featuresammlung.

IHttpConnectionFeature.RemotePort

OWIN-Featuresammlung.

IHttpRequestFeature.Body

OWIN-Featuresammlung.

IHttpRequestFeature.Headers

OWIN-Featuresammlung.

IHttpRequestFeature.Method

OWIN-Featuresammlung.

IHttpRequestFeature.Path

OWIN-Featuresammlung.

IHttpRequestFeature.PathBase

OWIN-Featuresammlung.

IHttpRequestFeature.Protocol

OWIN-Featuresammlung.

IHttpRequestFeature.QueryString

OWIN-Featuresammlung.

IHttpRequestFeature.RawTarget

OWIN-Featuresammlung.

IHttpRequestFeature.Scheme

OWIN-Featuresammlung.

IHttpRequestIdentifierFeature.TraceIdentifier

OWIN-Featuresammlung.

IHttpRequestLifetimeFeature.Abort()

OWIN-Featuresammlung.

IHttpRequestLifetimeFeature.RequestAborted

OWIN-Featuresammlung.

IHttpResponseBodyFeature.CompleteAsync()

OWIN-Featuresammlung.

IHttpResponseBodyFeature.DisableBuffering()

OWIN-Featuresammlung.

IHttpResponseBodyFeature.SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

OWIN-Featuresammlung.

IHttpResponseBodyFeature.StartAsync(CancellationToken)

OWIN-Featuresammlung.

IHttpResponseBodyFeature.Stream

OWIN-Featuresammlung.

IHttpResponseBodyFeature.Writer

OWIN-Featuresammlung.

IHttpResponseFeature.Body

OWIN-Featuresammlung.

IHttpResponseFeature.HasStarted

OWIN-Featuresammlung.

IHttpResponseFeature.Headers

OWIN-Featuresammlung.

IHttpResponseFeature.OnCompleted(Func<Object,Task>, Object)

OWIN-Featuresammlung.

IHttpResponseFeature.OnStarting(Func<Object,Task>, Object)

OWIN-Featuresammlung.

IHttpResponseFeature.ReasonPhrase

OWIN-Featuresammlung.

IHttpResponseFeature.StatusCode

OWIN-Featuresammlung.

IHttpSendFileFeature.SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

OWIN-Featuresammlung.

IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext)

OWIN-Featuresammlung.

IHttpWebSocketFeature.IsWebSocketRequest

OWIN-Featuresammlung.

ITlsConnectionFeature.ClientCertificate

OWIN-Featuresammlung.

ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken)

OWIN-Featuresammlung.

Erweiterungsmethoden

GetRequiredFeature(IFeatureCollection, Type)

Ruft das angeforderte Feature aus der Auflistung ab. Löst eine InvalidOperationException aus, wenn das Feature nicht vorhanden ist.

GetRequiredFeature<TFeature>(IFeatureCollection)

Ruft das angeforderte Feature aus der Auflistung ab. Löst eine InvalidOperationException aus, wenn das Feature nicht vorhanden ist.

Gilt für:

Produkt Versionen
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0