Share via


StaticFileOptions.OnPrepareResponse Eigenschaft

Definition

Wird aufgerufen, nachdem der Statuscode und die Header festgelegt wurden, jedoch bevor der Nachrichtentext geschrieben wurde. Kann zum Hinzufügen oder Ändern der Antwortheader verwendet werden.

public:
 property Action<Microsoft::AspNetCore::StaticFiles::StaticFileResponseContext ^> ^ OnPrepareResponse { Action<Microsoft::AspNetCore::StaticFiles::StaticFileResponseContext ^> ^ get(); void set(Action<Microsoft::AspNetCore::StaticFiles::StaticFileResponseContext ^> ^ value); };
public Action<Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext> OnPrepareResponse { get; set; }
member this.OnPrepareResponse : Action<Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext> with get, set
Public Property OnPrepareResponse As Action(Of StaticFileResponseContext)

Eigenschaftswert

Hinweise

OnPrepareResponse wird vor OnPrepareResponseAsyncaufgerufen.

Gilt für: