FilterCollection.Add Metodo

Definizione

Overload

Add(Type)

Aggiunge un tipo che rappresenta un oggetto IFilterMetadata.

Add(Type, Int32)

Aggiunge un tipo che rappresenta un oggetto IFilterMetadata.

Add<TFilterType>()

Aggiunge un tipo che rappresenta un oggetto IFilterMetadata.

Add<TFilterType>(Int32)

Aggiunge un tipo che rappresenta un oggetto IFilterMetadata.

Add(Type)

Aggiunge un tipo che rappresenta un oggetto 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

Parametri

filterType
Type

Tipo che rappresenta un oggetto IFilterMetadata.

Restituisce

Oggetto IFilterMetadata che rappresenta il tipo aggiunto.

Commenti

Le istanze di filtro verranno create usando ActivatorUtilities. Usare AddService(Type) per registrare un servizio come filtro. Al filtro aggiunto verrà assegnato un ordine pari a 0.

Si applica a

Add(Type, Int32)

Aggiunge un tipo che rappresenta un oggetto 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

Parametri

filterType
Type

Tipo che rappresenta un oggetto IFilterMetadata.

order
Int32

Ordine del filtro aggiunto.

Restituisce

Oggetto IFilterMetadata che rappresenta il tipo aggiunto.

Commenti

Le istanze di filtro verranno create usando ActivatorUtilities. Usare AddService(Type) per registrare un servizio come filtro.

Si applica a

Add<TFilterType>()

Aggiunge un tipo che rappresenta un oggetto 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

Parametri di tipo

TFilterType

Tipo che rappresenta un oggetto IFilterMetadata.

Restituisce

Oggetto IFilterMetadata che rappresenta il tipo aggiunto.

Commenti

Le istanze di filtro verranno create usando ActivatorUtilities. Usare AddService(Type) per registrare un servizio come filtro. Al filtro aggiunto verrà assegnato un ordine pari a 0.

Si applica a

Add<TFilterType>(Int32)

Aggiunge un tipo che rappresenta un oggetto 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

Parametri di tipo

TFilterType

Tipo che rappresenta un oggetto IFilterMetadata.

Parametri

order
Int32

Ordine del filtro aggiunto.

Restituisce

Oggetto IFilterMetadata che rappresenta il tipo aggiunto.

Commenti

Le istanze di filtro verranno create usando ActivatorUtilities. Usare AddService(Type) per registrare un servizio come filtro.

Si applica a