共用方式為


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

傳回

適用於