Share via


ApiConventionMethodAttribute Sınıf

Tanım

Bir denetleyici eylemine uygulanacak API kuralları.

API kuralları ApiExplorer'ın çıkışını etkilemek için kullanılır. ApiConventionMethodAttribute bir eylem için geçerli olan tam bir kural yöntemi belirtmek için kullanılabilir. ApiConventionTypeAttribute derleme veya denetleyici düzeyinde kuralları uygulama hakkında ayrıntılı bilgi için.

public ref class ApiConventionMethodAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ApiConventionMethodAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ApiConventionMethodAttribute = class
    inherit Attribute
Public NotInheritable Class ApiConventionMethodAttribute
Inherits Attribute
Devralma
ApiConventionMethodAttribute
Öznitelikler

Oluşturucular

ApiConventionMethodAttribute(Type, String)

ve öğesini methodNamekullanarak conventionType bir ApiConventionMethodAttribute örneği başlatır.

Özellikler

ConventionType

Kural türünü alır.

Şunlara uygulanır