Share via


ModelAttributes.GetAttributesForType(Type) Méthode

Définition

Obtient les attributs pour le donné type.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::ModelAttributes ^ GetAttributesForType(Type ^ type);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForType (Type type);
static member GetAttributesForType : Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Shared Function GetAttributesForType (type As Type) As ModelAttributes

Paramètres

type
Type

Type pour lequel les attributs doivent être résolus.

Retours

Une ModelAttributes instance avec les attributs de .Type

S’applique à