ParserContext.StartBlock Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| StartBlock() | Starts a block | 
| StartBlock(BlockType) | Starts a block of the specified type | 
StartBlock()
Starts a block
public:
 IDisposable ^ StartBlock();public IDisposable StartBlock();member this.StartBlock : unit -> IDisposablePublic Function StartBlock () As IDisposableReturns
Applies to
StartBlock(BlockType)
Starts a block of the specified type
public:
 IDisposable ^ StartBlock(Microsoft::AspNetCore::Razor::Parser::SyntaxTree::BlockType blockType);public IDisposable StartBlock(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.BlockType blockType);member this.StartBlock : Microsoft.AspNetCore.Razor.Parser.SyntaxTree.BlockType -> IDisposablePublic Function StartBlock (blockType As BlockType) As IDisposableParameters
- blockType
- BlockType
The type of the block to start