Share via


ParserContext.IsWithin(BlockType) Method

Definition

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

Returns

Applies to