PageModel.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

属性值

适用于