ViewComponentContextAttribute 類別

定義

指定在建立檢視元件時,應該使用目前的 ViewComponentContext 設定控制器屬性。 屬性必須具有公用集合方法。

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

建構函式

ViewComponentContextAttribute()

指定在建立檢視元件時,應該使用目前的 ViewComponentContext 設定控制器屬性。 屬性必須具有公用集合方法。

適用於