Share via


CompressionProviderCollection.Add Method

Definition

Overloads

Add(Type)

Adds a type representing an ICompressionProvider.

Add<TCompressionProvider>()

Adds a type representing an ICompressionProvider.

Add(Type)

Source:
CompressionProviderCollection.cs
Source:
CompressionProviderCollection.cs
Source:
CompressionProviderCollection.cs

Adds a type representing an ICompressionProvider.

public:
 void Add(Type ^ providerType);
public void Add (Type providerType);
override this.Add : Type -> unit
Public Sub Add (providerType As Type)

Parameters

providerType
Type

Type representing an ICompressionProvider.

Remarks

Provider instances will be created using an IServiceProvider.

Applies to

Add<TCompressionProvider>()

Source:
CompressionProviderCollection.cs
Source:
CompressionProviderCollection.cs
Source:
CompressionProviderCollection.cs

Adds a type representing an ICompressionProvider.

public:
generic <typename TCompressionProvider>
 where TCompressionProvider : Microsoft::AspNetCore::ResponseCompression::ICompressionProvider void Add();
public void Add<TCompressionProvider> () where TCompressionProvider : Microsoft.AspNetCore.ResponseCompression.ICompressionProvider;
override this.Add : unit -> unit (requires 'CompressionProvider :> Microsoft.AspNetCore.ResponseCompression.ICompressionProvider)
Public Sub Add(Of TCompressionProvider As ICompressionProvider) ()

Type Parameters

TCompressionProvider

Remarks

Provider instances will be created using an IServiceProvider.

Applies to