ResponseCookiesFeature 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ResponseCookiesFeature(IFeatureCollection) |
初始化新的 ResponseCookiesFeature 執行個體。 |
ResponseCookiesFeature(IFeatureCollection, ObjectPool<StringBuilder>) |
已淘汰.
初始化新的 ResponseCookiesFeature 執行個體。 |
ResponseCookiesFeature(IFeatureCollection)
初始化新的 ResponseCookiesFeature 執行個體。
public:
ResponseCookiesFeature(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public ResponseCookiesFeature (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
new Microsoft.AspNetCore.Http.Features.ResponseCookiesFeature : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.Http.Features.ResponseCookiesFeature
Public Sub New (features As IFeatureCollection)
參數
- features
- IFeatureCollection
IFeatureCollection 包含所有已定義的功能,包括這個 IResponseCookiesFeature 和 IHttpResponseFeature 。
適用於
ResponseCookiesFeature(IFeatureCollection, ObjectPool<StringBuilder>)
警告
This constructor is obsolete and will be removed in a future version.
初始化新的 ResponseCookiesFeature 執行個體。
public:
ResponseCookiesFeature(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features, Microsoft::Extensions::ObjectPool::ObjectPool<System::Text::StringBuilder ^> ^ builderPool);
public ResponseCookiesFeature (Microsoft.AspNetCore.Http.Features.IFeatureCollection features, Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> builderPool);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public ResponseCookiesFeature (Microsoft.AspNetCore.Http.Features.IFeatureCollection features, Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder>? builderPool);
new Microsoft.AspNetCore.Http.Features.ResponseCookiesFeature : Microsoft.AspNetCore.Http.Features.IFeatureCollection * Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> -> Microsoft.AspNetCore.Http.Features.ResponseCookiesFeature
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Http.Features.ResponseCookiesFeature : Microsoft.AspNetCore.Http.Features.IFeatureCollection * Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> -> Microsoft.AspNetCore.Http.Features.ResponseCookiesFeature
Public Sub New (features As IFeatureCollection, builderPool As ObjectPool(Of StringBuilder))
參數
- features
- IFeatureCollection
IFeatureCollection 包含所有已定義的功能,包括這個 IResponseCookiesFeature 和 IHttpResponseFeature 。
- builderPool
- ObjectPool<StringBuilder>
ObjectPool<T>如果有的話,則為 。
- 屬性