ParserContext.IsWithin(BlockType) 方法

定义

此类型/成员支持 .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。

适用于