共用方式為


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 實例。

適用於