ModelMetadata.ContainerType Property
Gets or sets the type of the container for the model.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public ReadOnly Property ContainerType As Type
Get
public Type ContainerType { get; }
public:
property Type^ ContainerType {
Type^ get ();
}
Property Value
Type: System.Type
The type of the container for the model.
Remarks
If the model does not have a container, this value of this property is null reference (Nothing in Visual Basic).