EncoderServiceCollectionExtensions 類別

定義

IServiceCollection 中設定 Web 編碼服務的擴充方法。Extension methods for setting up web encoding services in an IServiceCollection.

public ref class EncoderServiceCollectionExtensions abstract sealed
public static class EncoderServiceCollectionExtensions
type EncoderServiceCollectionExtensions = class
Public Module EncoderServiceCollectionExtensions
繼承
EncoderServiceCollectionExtensions

方法

AddWebEncoders(IServiceCollection)

HtmlEncoderJavaScriptEncoderUrlEncoder 新增至指定的 servicesAdds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

HtmlEncoderJavaScriptEncoderUrlEncoder 新增至指定的 servicesAdds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

適用於