Share via


StaticFileOptions.OnPrepareResponse Özellik

Tanım

Durum kodu ve üst bilgiler ayarlandıktan sonra ancak gövde yazılmadan önce çağrılır. Bu, yanıt üst bilgilerini eklemek veya değiştirmek için kullanılabilir.

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)

Özellik Değeri

Açıklamalar

OnPrepareResponse , öncesinde OnPrepareResponseAsyncçağrılır.

Şunlara uygulanır