ParserContext.StartBlock Method (BlockType)
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 ( _
blockType As BlockType _
) As IDisposable
'Usage
Dim instance As ParserContext
Dim blockType As BlockType
Dim returnValue As IDisposable
returnValue = instance.StartBlock(blockType)
public IDisposable StartBlock(
BlockType blockType
)
public:
IDisposable^ StartBlock(
BlockType blockType
)
member StartBlock :
blockType:BlockType -> IDisposable
public function StartBlock(
blockType : BlockType
) : IDisposable
Parameters
- blockType
Type: System.Web.Razor.Parser.SyntaxTree.BlockType
The type for the new block builder.
Return Value
Type: System.IDisposable
A disposable action that returns an end block.