ApiConventionTypeMatchAttribute 类

定义

按类型确定 API 约定参数的匹配行为。 ApiConventionTypeMatchBehavior ,用于支持的选项。 .

public ref class ApiConventionTypeMatchAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=false)]
public sealed class ApiConventionTypeMatchAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=false)>]
type ApiConventionTypeMatchAttribute = class
    inherit Attribute
Public NotInheritable Class ApiConventionTypeMatchAttribute
Inherits Attribute
继承
ApiConventionTypeMatchAttribute
属性

注解

AssignableFrom 如果在约定参数上未指定此属性的值,则使用 。

构造函数

ApiConventionTypeMatchAttribute(ApiConventionTypeMatchBehavior)

使用指定的 matchBehavior初始化 的新ApiConventionTypeMatchAttribute实例。

属性

MatchBehavior

获取 ApiConventionTypeMatchBehavior

适用于