ModelChunk Class

Summary

Microsoft.AspNet.Razor.Chunks.Chunk for an <c>@model</c> directive.

Syntax

public class ModelChunk : Chunk

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.ModelChunk

Constructors

ModelChunk(System.String)

Initializes a new instance of Microsoft.AspNet.Mvc.Razor.ModelChunk.

Arguments:
  • modelType (System.String) – The type of the view’s model.
public ModelChunk(string modelType)

Properties

ModelType()

Gets the type of the view’s model.

Return type:System.String
public string ModelType { get; }