ApiConventionMethodAttribute(Type, String) Oluşturucu
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
ve öğesini methodName
kullanarak conventionType
bir ApiConventionMethodAttribute örneği başlatır.
public:
ApiConventionMethodAttribute(Type ^ conventionType, System::String ^ methodName);
public ApiConventionMethodAttribute (Type conventionType, string methodName);
new Microsoft.AspNetCore.Mvc.ApiConventionMethodAttribute : Type * string -> Microsoft.AspNetCore.Mvc.ApiConventionMethodAttribute
Public Sub New (conventionType As Type, methodName As String)
Parametreler
- conventionType
- Type
Kuralın Type .
Kurallar statik türler olmalıdır. Bir kuraldaki yöntemler, tarafından belirtilen ApiConventionNameMatchAttribute ve bir yöntem adına veya parametrelerine uygulanabilen ve ApiConventionTypeMatchAttribute parametrelere uygulanan kurallar kullanılarak bir eylem yöntemiyle eşleştirilir.
- methodName
- String
Yöntem adı.