共用方式為


OwinFeatureCollection 類別

定義

OWIN 功能集合。

public ref 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 ^, System::Object ^>>
public ref 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 ^, System::Object ^>>
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>>
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>>
type OwinFeatureCollection = class
    interface IFeatureCollection
    interface seq<KeyValuePair<Type, obj>>
    interface IEnumerable
    interface IHttpRequestFeature
    interface IHttpResponseFeature
    interface IHttpConnectionFeature
    interface IHttpSendFileFeature
    interface ITlsConnectionFeature
    interface IHttpRequestIdentifierFeature
    interface IHttpRequestLifetimeFeature
    interface IHttpAuthenticationFeature
    interface IHttpWebSocketFeature
    interface IOwinEnvironmentFeature
type OwinFeatureCollection = class
    interface IFeatureCollection
    interface seq<KeyValuePair<Type, obj>>
    interface IEnumerable
    interface IHttpRequestFeature
    interface IHttpResponseFeature
    interface IHttpResponseBodyFeature
    interface IHttpConnectionFeature
    interface ITlsConnectionFeature
    interface IHttpRequestIdentifierFeature
    interface IHttpRequestLifetimeFeature
    interface IHttpAuthenticationFeature
    interface IHttpWebSocketFeature
    interface IOwinEnvironmentFeature
Public Class OwinFeatureCollection
Implements IEnumerable(Of KeyValuePair(Of Type, Object)), IFeatureCollection, IHttpAuthenticationFeature, IHttpConnectionFeature, IHttpRequestFeature, IHttpRequestIdentifierFeature, IHttpRequestLifetimeFeature, IHttpResponseFeature, IHttpSendFileFeature, IHttpWebSocketFeature, IOwinEnvironmentFeature, ITlsConnectionFeature
Public Class OwinFeatureCollection
Implements IEnumerable(Of KeyValuePair(Of Type, Object)), IFeatureCollection, IHttpAuthenticationFeature, IHttpConnectionFeature, IHttpRequestFeature, IHttpRequestIdentifierFeature, IHttpRequestLifetimeFeature, IHttpResponseBodyFeature, IHttpResponseFeature, IHttpWebSocketFeature, IOwinEnvironmentFeature, ITlsConnectionFeature
繼承
OwinFeatureCollection
實作

建構函式

OwinFeatureCollection(IDictionary<String,Object>)

初始化 OwinFeatureCollection的新實例。

屬性

Environment

取得或設定 OWIN 環境值。

IsReadOnly

指出是否可以修改集合。

Item[Type]

取得或設定指定的功能。 設定 Null 值會移除此功能。

Revision

針對每個修改遞增,可用來驗證快取的結果。

SupportsWebSockets

取得或設定基礎伺服器是否支援 WebSockets。 默認會啟用此功能。 值應該在要求之間保持一致。

方法

Dispose()

OWIN 功能集合。

Get(Type)

OWIN 功能集合。

Get<TFeature>()

從集合擷取要求的功能。

GetEnumerator()

OWIN 功能集合。

Set(Type, Object)

OWIN 功能集合。

Set<TFeature>(TFeature)

設定集合中的指定功能。

明確介面實作

IEnumerable.GetEnumerator()

OWIN 功能集合。

IHttpAuthenticationFeature.Handler

OWIN 功能集合。

IHttpAuthenticationFeature.User

OWIN 功能集合。

IHttpConnectionFeature.ConnectionId

OWIN 功能集合。

IHttpConnectionFeature.LocalIpAddress

OWIN 功能集合。

IHttpConnectionFeature.LocalPort

OWIN 功能集合。

IHttpConnectionFeature.RemoteIpAddress

OWIN 功能集合。

IHttpConnectionFeature.RemotePort

OWIN 功能集合。

IHttpRequestFeature.Body

OWIN 功能集合。

IHttpRequestFeature.Headers

OWIN 功能集合。

IHttpRequestFeature.Method

OWIN 功能集合。

IHttpRequestFeature.Path

OWIN 功能集合。

IHttpRequestFeature.PathBase

OWIN 功能集合。

IHttpRequestFeature.Protocol

OWIN 功能集合。

IHttpRequestFeature.QueryString

OWIN 功能集合。

IHttpRequestFeature.RawTarget

OWIN 功能集合。

IHttpRequestFeature.Scheme

OWIN 功能集合。

IHttpRequestIdentifierFeature.TraceIdentifier

OWIN 功能集合。

IHttpRequestLifetimeFeature.Abort()

OWIN 功能集合。

IHttpRequestLifetimeFeature.RequestAborted

OWIN 功能集合。

IHttpResponseBodyFeature.CompleteAsync()

OWIN 功能集合。

IHttpResponseBodyFeature.DisableBuffering()

OWIN 功能集合。

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

OWIN 功能集合。

IHttpResponseBodyFeature.StartAsync(CancellationToken)

OWIN 功能集合。

IHttpResponseBodyFeature.Stream

OWIN 功能集合。

IHttpResponseBodyFeature.Writer

OWIN 功能集合。

IHttpResponseFeature.Body

OWIN 功能集合。

IHttpResponseFeature.HasStarted

OWIN 功能集合。

IHttpResponseFeature.Headers

OWIN 功能集合。

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

OWIN 功能集合。

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

OWIN 功能集合。

IHttpResponseFeature.ReasonPhrase

OWIN 功能集合。

IHttpResponseFeature.StatusCode

OWIN 功能集合。

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

OWIN 功能集合。

IHttpWebSocketFeature.AcceptAsync(WebSocketAcceptContext)

OWIN 功能集合。

IHttpWebSocketFeature.IsWebSocketRequest

OWIN 功能集合。

ITlsConnectionFeature.ClientCertificate

OWIN 功能集合。

ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken)

OWIN 功能集合。

擴充方法

GetRequiredFeature(IFeatureCollection, Type)

從集合擷取要求的功能。 如果功能不存在,則會擲回 InvalidOperationException

GetRequiredFeature<TFeature>(IFeatureCollection)

從集合擷取要求的功能。 如果功能不存在,則會擲回 InvalidOperationException

適用於