Aracılığıyla paylaş


ApiConventionMethodAttribute(Type, String) Oluşturucu

Tanım

ve öğesini methodNamekullanarak 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ı.

Şunlara uygulanır