ControllerAttribute 類別

定義

指出除非套用至階層中的任何類型,否則 NonControllerAttribute 這個屬性套用至的任何衍生型別都會被視為預設控制器探索機制的控制器。

public ref class ControllerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ControllerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ControllerAttribute = class
    inherit Attribute
Public Class ControllerAttribute
Inherits Attribute
繼承
ControllerAttribute
衍生
屬性

建構函式

ControllerAttribute()

指出除非套用至階層中的任何類型,否則 NonControllerAttribute 這個屬性套用至的任何衍生型別都會被視為預設控制器探索機制的控制器。

適用於