BaseView Class¶
Infrastructure
- Namespace
Microsoft.AspNetCore.DiagnosticsViewPage.Views
- Assemblies
- Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
Syntax¶
public abstract class BaseView
-
class
Microsoft.AspNetCore.DiagnosticsViewPage.Views.
BaseView
Methods¶
-
BeginWriteAttribute
(System.String, System.String, System.Int32, System.String, System.Int32, System.Int32)¶ protected void BeginWriteAttribute(string name, string begining, int startPosition, string ending, int endPosition, int thingy)
-
EndWriteAttribute
()¶ protected void EndWriteAttribute()
-
ExecuteAsync
()¶ Execute an individual request
Return type: System.Threading.Tasks.Task public abstract Task ExecuteAsync()
-
ExecuteAsync
(Microsoft.AspNetCore.Http.HttpContext) Execute an individual request
Return type: System.Threading.Tasks.Task public Task ExecuteAsync(HttpContext context)
-
HtmlEncodeAndReplaceLineBreaks
(System.String)¶ Return type: System.String protected string HtmlEncodeAndReplaceLineBreaks(string input)
-
Write
(Microsoft.AspNetCore.DiagnosticsViewPage.Views.HelperResult)¶ Microsoft.AspNetCore.DiagnosticsViewPage.Views.HelperResult.WriteTo(System.IO.TextWriter)
is invokedArguments: result (Microsoft.AspNetCore.DiagnosticsViewPage.Views.HelperResult) – The Microsoft.AspNetCore.DiagnosticsViewPage.Views.HelperResult
to invokeprotected void Write(HelperResult result)
-
Write
(System.Object) Convert to string and html encode
protected void Write(object value)
-
Write
(System.String) Html encode and write
protected void Write(string value)
-
WriteAttributeTo
(System.IO.TextWriter, System.String, System.String, System.String, Microsoft.AspNetCore.DiagnosticsViewPage.Views.AttributeValue[])¶ Writes the given attribute to the given writer
Arguments: - writer (System.IO.TextWriter) – The
System.IO.TextWriter
instance to write to. - name (System.String) – The name of the attribute to write
- leader (System.String) – The value of the prefix
- trailer (System.String) – The value of the suffix
- values (Microsoft.AspNetCore.DiagnosticsViewPage.Views.AttributeValue<Microsoft.AspNetCore.DiagnosticsViewPage.Views.AttributeValue>[]) – The
Microsoft.AspNetCore.DiagnosticsViewPage.Views.AttributeValue
s to write.
protected void WriteAttributeTo(TextWriter writer, string name, string leader, string trailer, params AttributeValue[] values)
- writer (System.IO.TextWriter) – The
-
WriteAttributeValue
(System.String, System.Int32, System.Object, System.Int32, System.Int32, System.Boolean)¶ protected void WriteAttributeValue(string thingy, int startPostion, object value, int endValue, int dealyo, bool yesno)
-
WriteLiteral
(System.Object)¶ Write the given value directly to the output
protected void WriteLiteral(object value)
-
WriteLiteral
(System.String) Write the given value directly to the output
protected void WriteLiteral(string value)
-
WriteLiteralTo
(System.IO.TextWriter, System.Object)¶ Writes the specified <em>value</em> without HTML encoding to the <em>writer</em>.
Arguments: - writer (System.IO.TextWriter) – The
System.IO.TextWriter
instance to write to. - value (System.Object) – The
System.Object
to write.
protected void WriteLiteralTo(TextWriter writer, object value)
- writer (System.IO.TextWriter) – The
-
WriteLiteralTo
(System.IO.TextWriter, System.String) Writes the specified <em>value</em> without HTML encoding to
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.Output
.Arguments: - writer (System.IO.TextWriter) – The
System.IO.TextWriter
instance to write to. - value (System.String) – The
System.String
to write.
protected void WriteLiteralTo(TextWriter writer, string value)
- writer (System.IO.TextWriter) – The
-
WriteTo
(System.IO.TextWriter, System.Object)¶ Writes the specified <em>value</em> to <em>writer</em>.
Arguments: - writer (System.IO.TextWriter) – The
System.IO.TextWriter
instance to write to. - value (System.Object) – The
System.Object
to write.
protected void WriteTo(TextWriter writer, object value)
- writer (System.IO.TextWriter) – The
-
WriteTo
(System.IO.TextWriter, System.String) Writes the specified <em>value</em> with HTML encoding to <em>writer</em>.
Arguments: - writer (System.IO.TextWriter) – The
System.IO.TextWriter
instance to write to. - value (System.String) – The
System.String
to write.
protected void WriteTo(TextWriter writer, string value)
- writer (System.IO.TextWriter) – The
-
Properties¶
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
Context
¶ The request context
Return type: Microsoft.AspNetCore.Http.HttpContext protected HttpContext Context { get; }
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
HtmlEncoder
¶ Html encoder used to encode content.
Return type: System.Text.Encodings.Web.HtmlEncoder protected HtmlEncoder HtmlEncoder { get; set; }
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
JavaScriptEncoder
¶ JavaScript encoder used to encode content.
Return type: System.Text.Encodings.Web.JavaScriptEncoder protected JavaScriptEncoder JavaScriptEncoder { get; set; }
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
Output
¶ The output stream
Return type: System.IO.StreamWriter protected StreamWriter Output { get; }
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
Request
¶ The request
Return type: Microsoft.AspNetCore.Http.HttpRequest protected HttpRequest Request { get; }
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
Response
¶ The response
Return type: Microsoft.AspNetCore.Http.HttpResponse protected HttpResponse Response { get; }
-
Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView.
UrlEncoder
¶ Url encoder used to encode content.
Return type: System.Text.Encodings.Web.UrlEncoder protected UrlEncoder UrlEncoder { get; set; }
-