Share via


ParserContext.StartBlock Method

Definition

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 -> IDisposable
Public Function StartBlock () As IDisposable

Returns

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 -> IDisposable
Public Function StartBlock (blockType As BlockType) As IDisposable

Parameters

blockType
BlockType

The type of the block to start

Returns

Applies to