ParserContext.IsWithin(BlockType) 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个布尔值,指示当前块的任何上级是否为指定类型
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 -> boolPublic Function IsWithin (type As BlockType) As Boolean参数
- type
- BlockType