ModelAttributes.GetAttributesForType(Type) 方法

定义

获取给定 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

参数

type
Type

Type需要解析其属性的 。

返回

具有 ModelAttributes 特性的 Type实例。

适用于