HelperPage.BeginContext Method (TextWriter, String, Int32, Int32, Boolean)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Puts all the helper statements into the context of the helper page.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Sub BeginContext ( _
writer As TextWriter, _
virtualPath As String, _
startPosition As Integer, _
length As Integer, _
isLiteral As Boolean _
)
'Usage
Dim writer As TextWriter
Dim virtualPath As String
Dim startPosition As Integer
Dim length As Integer
Dim isLiteral As Boolean
HelperPage.BeginContext(writer, virtualPath, _
startPosition, length, isLiteral)
public static void BeginContext(
TextWriter writer,
string virtualPath,
int startPosition,
int length,
bool isLiteral
)
public:
static void BeginContext(
TextWriter^ writer,
String^ virtualPath,
int startPosition,
int length,
bool isLiteral
)
static member BeginContext :
writer:TextWriter *
virtualPath:string *
startPosition:int *
length:int *
isLiteral:bool -> unit
public static function BeginContext(
writer : TextWriter,
virtualPath : String,
startPosition : int,
length : int,
isLiteral : boolean
)
Parameters
- writer
Type: System.IO.TextWriter
The text writer.
- virtualPath
Type: System.String
The helper virtual path.
- startPosition
Type: System.Int32
The starting position.
- length
Type: System.Int32
The length of the context.
- isLiteral
Type: System.Boolean
true of the context has a literal attribute; otherwise, false.