ParserContext.IsWithin(BlockType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。 确定指定的块类型是否存在于块生成器列表中。
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
参数
- type
- BlockType
要检查的块类型。
返回
如果块生成器列表中存在指定的块类型,则为 true;否则为 false。