ParserContext.IsWithin Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether the specified block type exists in the block builder list.
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public Function IsWithin ( _
type As BlockType _
) As Boolean
'Usage
Dim instance As ParserContext
Dim type As BlockType
Dim returnValue As Boolean
returnValue = instance.IsWithin(type)
public bool IsWithin(
BlockType type
)
public:
bool IsWithin(
BlockType type
)
member IsWithin :
type:BlockType -> bool
public function IsWithin(
type : BlockType
) : boolean
Parameters
- type
Type: System.Web.Razor.Parser.SyntaxTree.BlockType
The block type to check.
Return Value
Type: System.Boolean
true if the specified block type exists in the block builder list; otherwise, false.