Freigeben über


ParserContext.IsWithin(BlockType) Methode

Definition

Ruft einen booleschen Wert ab, der angibt, ob einer der Vorgänger des aktuellen Blocks vom angegebenen Typ ist.

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

Parameter

type
BlockType

Gibt zurück

Gilt für: