Share via


ViewDataDictionaryAttribute 類別

定義

指定建立控制器時,應該使用目前的 ViewDataDictionary 設定控制器屬性。 屬性必須有公用集合方法。

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

建構函式

ViewDataDictionaryAttribute()

指定建立控制器時,應該使用目前的 ViewDataDictionary 設定控制器屬性。 屬性必須有公用集合方法。

適用於