ApiConventionTypeAttribute(Type) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
ApiConventionTypeAttribute使用 conventionType
初始化实例。
public:
ApiConventionTypeAttribute(Type ^ conventionType);
public ApiConventionTypeAttribute (Type conventionType);
new Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute : Type -> Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute
Public Sub New (conventionType As Type)
参数
- conventionType
- Type
Type约定的 。
约定必须是静态类型。 约定中的方法使用指定的 ApiConventionNameMatchAttribute 规则与操作方法匹配,这些规则可应用于方法名称或其参数,并 ApiConventionTypeMatchAttribute 应用于参数。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将推出:在整个 2024 年,我们将逐步取消以“GitHub 问题”作为内容的反馈机制,并将其替换为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈