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.
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether the specified block type exists in the block builder list.
public bool IsWithin(System.Web.Razor.Parser.SyntaxTree.BlockType type);
member this.IsWithin : System.Web.Razor.Parser.SyntaxTree.BlockType -> bool
Public Function IsWithin (type As BlockType) As Boolean
Parameters
- type
- BlockType
The block type to check.
Returns
true if the specified block type exists in the block builder list; otherwise, false.