次の方法で共有


ViewComponent.ViewData プロパティ

定義

ViewDataDictionary を取得します。

public:
 property Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ ViewData { Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ get(); };
public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get; }
member this.ViewData : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary
Public ReadOnly Property ViewData As ViewDataDictionary

プロパティ値

適用対象