Share via


ParserContext.StartBlock Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a new block builder at the end of the block builder stack and returns a disposable action that returns an end block.

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Function StartBlock As IDisposable
'Usage
Dim instance As ParserContext 
Dim returnValue As IDisposable 

returnValue = instance.StartBlock()
public IDisposable StartBlock()
public:
IDisposable^ StartBlock()
member StartBlock : unit -> IDisposable
public function StartBlock() : IDisposable

Return Value

Type: System.IDisposable
A disposable action that returns an end block.

See Also

Reference

ParserContext Class

StartBlock Overload

System.Web.Razor.Parser Namespace