Sdílet prostřednictvím


DefaultHttpContext.Initialize(IFeatureCollection) Metoda

Definice

Znovu inicializovat aktuální instant třídy s předanými funkcemi.

public:
 virtual void Initialize(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public:
 void Initialize(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public virtual void Initialize (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
public void Initialize (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
abstract member Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
override this.Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
member this.Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
Public Overridable Sub Initialize (features As IFeatureCollection)
Public Sub Initialize (features As IFeatureCollection)

Parametry

features
IFeatureCollection

Nová sada funkcí pro DefaultHttpContext.

Poznámky

Tato metoda umožňuje příjemci znovu použít DefaultHttpContext pro jiný požadavek místo přidělení nové instance.

Platí pro