CodeGeneratorContext.AddContextCall Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a code statement for a context call on the specified method.
Namespace: System.Web.Razor.Generator
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public Sub AddContextCall ( _
contentSpan As Span, _
methodName As String, _
isLiteral As Boolean _
)
'Usage
Dim instance As CodeGeneratorContext
Dim contentSpan As Span
Dim methodName As String
Dim isLiteral As Boolean
instance.AddContextCall(contentSpan, _
methodName, isLiteral)
public void AddContextCall(
Span contentSpan,
string methodName,
bool isLiteral
)
public:
void AddContextCall(
Span^ contentSpan,
String^ methodName,
bool isLiteral
)
member AddContextCall :
contentSpan:Span *
methodName:string *
isLiteral:bool -> unit
public function AddContextCall(
contentSpan : Span,
methodName : String,
isLiteral : boolean
)
Parameters
- contentSpan
Type: System.Web.Razor.Parser.SyntaxTree.Span
The content span.
- methodName
Type: System.String
The name of the method to invoke a context call.
- isLiteral
Type: System.Boolean
true to specify that the method parameter is literal; otherwise, false.