Aracılığıyla paylaş


ApiConventionTypeAttribute(Type) Oluşturucu

Tanım

kullanarak conventionTypebir ApiConventionTypeAttribute örneği başlatır.

public:
 ApiConventionTypeAttribute(Type ^ conventionType);
public ApiConventionTypeAttribute (Type conventionType);
new Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute : Type -> Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute
Public Sub New (conventionType As Type)

Parametreler

conventionType
Type

Kuralın Type .

Kurallar statik türler olmalıdır. Bir kuraldaki yöntemler, tarafından belirtilen ApiConventionNameMatchAttribute bir yöntem adına veya parametrelerine uygulanabilen ve ApiConventionTypeMatchAttribute parametrelere uygulanan kurallar kullanılarak bir eylem yöntemiyle eşleştirilir.

Şunlara uygulanır