ModelMetadata.IsComplexType Property

 

Gets or sets a value that indicates whether the model is a complex type.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

public virtual bool IsComplexType { get; }
public:
property bool IsComplexType {
    virtual bool get();
}
abstract IsComplexType : bool with get
override IsComplexType : bool with get
Public Overridable ReadOnly Property IsComplexType As Boolean

Property Value

Type: System.Boolean

A value that indicates whether the model is considered a complex type by the MVC framework.

Remarks

If the model is complex, the complex-object template will be used. .NET Framework built in types are not complex types.

See Also

ModelMetadata Class
System.Web.Mvc Namespace

Return to top