다음을 통해 공유


HstsBuilderExtensions.UseHsts(IApplicationBuilder) 메서드

정의

Strict-Transport-Security 헤더를 추가하는 HSTS를 사용하기 위한 미들웨어를 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHsts(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHsts (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseHsts : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHsts (app As IApplicationBuilder) As IApplicationBuilder

매개 변수

app
IApplicationBuilder

이 메서드가 IApplicationBuilder 확장되는 instance.

반환

적용 대상