A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.filters.filtercollection.add below:

FilterCollection.Add Method (Microsoft.AspNetCore.Mvc.Filters) | Microsoft Learn

FilterCollection.Add Method Definition
Namespace:
Microsoft.AspNetCore.Mvc.Filters
Assembly:
Microsoft.AspNetCore.Mvc.Core.dll
Package:
Microsoft.AspNetCore.Mvc.Core v1.0.0
Package:
Microsoft.AspNetCore.Mvc.Core v1.1.0
Package:
Microsoft.AspNetCore.App.Ref v10.0.0-preview.6.25358.103
Package:
Microsoft.AspNetCore.Mvc.Core v2.0.0
Package:
Microsoft.AspNetCore.Mvc.Core v2.1.0
Package:
Microsoft.AspNetCore.Mvc.Core v2.2.0
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Package:
Microsoft.AspNetCore.App.Ref v5.0.0
Package:
Microsoft.AspNetCore.App.Ref v6.0.6
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.0
Package:
Microsoft.AspNetCore.App.Ref v9.0.2

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)
Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs
public:
 Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^ Add(Type ^ filterType);
public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(Type filterType);
override this.Add : Type -> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Public Function Add (filterType As Type) As IFilterMetadata
Parameters Returns

A IFilterMetadata representing the added type.

Remarks

Filter instances will be created using ActivatorUtilities. Use AddService(Type) to register a service as a filter. The added filter will be assigned an order of 0.

Add(Type, Int32)
Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs
public:
 Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^ Add(Type ^ filterType, int order);
public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(Type filterType, int order);
override this.Add : Type * int -> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Public Function Add (filterType As Type, order As Integer) As IFilterMetadata
Parameters
order
Int32

The order of the added filter.

Returns

A IFilterMetadata representing the added type.

Remarks

Filter instances will be created using ActivatorUtilities. Use AddService(Type) to register a service as a filter.

Add<TFilterType>()
Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs
public:
generic <typename TFilterType>
 where TFilterType : Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^ Add();
public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add<TFilterType>() where TFilterType : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata;
override this.Add : unit -> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata (requires 'FilterType :> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata)
Public Function Add(Of TFilterType As IFilterMetadata) () As IFilterMetadata
Type Parameters Returns

A IFilterMetadata representing the added type.

Remarks

Filter instances will be created using ActivatorUtilities. Use AddService(Type) to register a service as a filter. The added filter will be assigned an order of 0.

Add<TFilterType>(Int32)
Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs
public:
generic <typename TFilterType>
 where TFilterType : Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^ Add(int order);
public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add<TFilterType>(int order) where TFilterType : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata;
override this.Add : int -> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata (requires 'FilterType :> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata)
Public Function Add(Of TFilterType As IFilterMetadata) (order As Integer) As IFilterMetadata
Type Parameters Parameters
order
Int32

The order of the added filter.

Returns

A IFilterMetadata representing the added type.

Remarks

Filter instances will be created using ActivatorUtilities. Use AddService(Type) to register a service as a filter.

Feedback

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4