CompressionProviderCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(Type) |
Adds a type representing an ICompressionProvider. |
Add<TCompressionProvider>() |
Adds a type representing an ICompressionProvider. |
Add(Type)
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>()
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.