Share via


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

Return Value

Type: System.Boolean
true if the specified block type exists in the block builder list; otherwise, false.

See Also

Reference

ParserContext Class

System.Web.Razor.Parser Namespace