Freigeben über


ModelAttributes.GetAttributesForType(Type) Methode

Definition

Ruft die Attribute für den angegebenen typeab.

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

Parameter

type
Type

Die Type , für die Attribute aufgelöst werden müssen.

Gibt zurück

Ein ModelAttributes instance mit den Attributen von Type.

Gilt für: