Compartir a través de


FilterCollection.Add Método

Definición

Sobrecargas

Add(Type)

Agrega un tipo que representa un IFilterMetadata.

Add(Type, Int32)

Agrega un tipo que representa un IFilterMetadata.

Add<TFilterType>()

Agrega un tipo que representa un IFilterMetadata.

Add<TFilterType>(Int32)

Agrega un tipo que representa un IFilterMetadata.

Add(Type)

Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs

Agrega un tipo que representa un IFilterMetadata.

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

Parámetros

filterType
Type

Tipo que representa un IFilterMetadataobjeto .

Devoluciones

que IFilterMetadata representa el tipo agregado.

Comentarios

Las instancias de filtro se crearán mediante ActivatorUtilities. Use AddService(Type) para registrar un servicio como filtro. Al filtro agregado se le asignará un orden de 0.

Se aplica a

Add(Type, Int32)

Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs

Agrega un tipo que representa un IFilterMetadata.

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

Parámetros

filterType
Type

Tipo que representa un IFilterMetadataobjeto .

order
Int32

Orden del filtro agregado.

Devoluciones

que IFilterMetadata representa el tipo agregado.

Comentarios

Las instancias de filtro se crearán mediante ActivatorUtilities. Use AddService(Type) para registrar un servicio como filtro.

Se aplica a

Add<TFilterType>()

Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs

Agrega un tipo que representa un IFilterMetadata.

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

Parámetros de tipo

TFilterType

Tipo que representa un IFilterMetadataobjeto .

Devoluciones

que IFilterMetadata representa el tipo agregado.

Comentarios

Las instancias de filtro se crearán mediante ActivatorUtilities. Use AddService(Type) para registrar un servicio como filtro. Al filtro agregado se le asignará un orden de 0.

Se aplica a

Add<TFilterType>(Int32)

Source:
FilterCollection.cs
Source:
FilterCollection.cs
Source:
FilterCollection.cs

Agrega un tipo que representa un IFilterMetadata.

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

Parámetros de tipo

TFilterType

Tipo que representa un IFilterMetadataobjeto .

Parámetros

order
Int32

Orden del filtro agregado.

Devoluciones

que IFilterMetadata representa el tipo agregado.

Comentarios

Las instancias de filtro se crearán mediante ActivatorUtilities. Use AddService(Type) para registrar un servicio como filtro.

Se aplica a