Share via


ModelAttributes.GetAttributesForType(Type) Method

Definition

Gets the attributes for the given 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

Parameters

type
Type

The Type for which attributes need to be resolved.

Returns

A ModelAttributes instance with the attributes of the Type.

Applies to