ParserContext.IsWithin(BlockType) 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.
Gets a boolean indicating if any of the ancestors of the current block is of the specified type
public:
bool IsWithin(Microsoft::AspNetCore::Razor::Parser::SyntaxTree::BlockType type);
public bool IsWithin (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.BlockType type);
member this.IsWithin : Microsoft.AspNetCore.Razor.Parser.SyntaxTree.BlockType -> bool
Public Function IsWithin (type As BlockType) As Boolean
Parameters
- type
- BlockType