ViewDataDictionary<TModel> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a ViewDataDictionary for a specific model type.
generic <typename TModel>
public ref class ViewDataDictionary : Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary
public class ViewDataDictionary<TModel> : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary
type ViewDataDictionary<'Model> = class
inherit ViewDataDictionary
Public Class ViewDataDictionary(Of TModel)
Inherits ViewDataDictionary
Type Parameters
- TModel
The type of the model.
- Inheritance
Constructors
ViewDataDictionary<TModel>(IModelMetadataProvider, ModelStateDictionary) |
Initializes a new instance of the ViewDataDictionary<TModel> class. |
ViewDataDictionary<TModel>(ViewDataDictionary, Object) |
Initializes a new instance of the ViewDataDictionary<TModel> class based in part on an
existing ViewDataDictionary instance. This constructor is careful to avoid exceptions
SetModel(Object) may throw when |
ViewDataDictionary<TModel>(ViewDataDictionary) |
Initializes a new instance of the ViewDataDictionary<TModel> class based in part on an existing ViewDataDictionary instance. |
Properties
Count | (Inherited from ViewDataDictionary) |
IsReadOnly | (Inherited from ViewDataDictionary) |
Item[String] | (Inherited from ViewDataDictionary) |
Keys | (Inherited from ViewDataDictionary) |
Model |
Gets or sets the current model. |
ModelExplorer |
Gets or sets the ModelExplorer for the Model. (Inherited from ViewDataDictionary) |
ModelMetadata |
Gets the ModelMetadata for an expression, the Model (if
non- |
ModelState |
Gets the ModelStateDictionary. (Inherited from ViewDataDictionary) |
TemplateInfo |
Gets the TemplateInfo. (Inherited from ViewDataDictionary) |
Values | (Inherited from ViewDataDictionary) |
Methods
Explicit Interface Implementations
IEnumerable.GetEnumerator() | (Inherited from ViewDataDictionary) |
IEnumerable<KeyValuePair<String,Object>>.GetEnumerator() | (Inherited from ViewDataDictionary) |