ModelSpan Constructor
Initializes a new instance of the ModelSpan class.
Namespace: System.Web.Mvc.Razor
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
start As SourceLocation, _
content As String, _
modelTypeName As String _
)
'Usage
Dim start As SourceLocation
Dim content As String
Dim modelTypeName As String
Dim instance As New ModelSpan(start, content, _
modelTypeName)
public ModelSpan(
SourceLocation start,
string content,
string modelTypeName
)
public:
ModelSpan(
SourceLocation start,
String^ content,
String^ modelTypeName
)
public function ModelSpan(
start : SourceLocation,
content : String,
modelTypeName : String
)
Parameters
- start
Type: System.Web.Razor.Text.SourceLocation
The start of the span.
- content
Type: System.String
The content.
- modelTypeName
Type: System.String
The type name of the model.