ParserContext.IsWithin(BlockType) 方法

定义

获取一个布尔值,指示当前块的任何上级是否为指定类型

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

参数

type
BlockType

返回

适用于