RenderTreeBuilder.AddContent 方法

定義

多載

AddContent(Int32, Object)

附加代表文字內容的框架。

AddContent(Int32, Nullable<MarkupString>)

附加代表標記內容的框架。

AddContent(Int32, String)

附加代表文字內容的框架。

AddContent(Int32, MarkupString)

附加代表標記內容的框架。

AddContent(Int32, RenderFragment)

附加代表任意內容片段的畫面。

AddContent<TValue>(Int32, RenderFragment<TValue>, TValue)

附加代表任意內容片段的畫面。

AddContent(Int32, Object)

附加代表文字內容的框架。

public:
 void AddContent(int sequence, System::Object ^ textContent);
public void AddContent (int sequence, object textContent);
public void AddContent (int sequence, object? textContent);
member this.AddContent : int * obj -> unit
Public Sub AddContent (sequence As Integer, textContent As Object)

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

textContent
Object

新文字圖文框的內容。

適用於

AddContent(Int32, Nullable<MarkupString>)

附加代表標記內容的框架。

public void AddContent (int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent);
member this.AddContent : int * Nullable<Microsoft.AspNetCore.Components.MarkupString> -> unit
Public Sub AddContent (sequence As Integer, markupContent As Nullable(Of MarkupString))

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

markupContent
Nullable<MarkupString>

新文字圖文框的內容,或 Null。

適用於

AddContent(Int32, String)

附加代表文字內容的框架。

public:
 void AddContent(int sequence, System::String ^ textContent);
public void AddContent (int sequence, string textContent);
public void AddContent (int sequence, string? textContent);
member this.AddContent : int * string -> unit
Public Sub AddContent (sequence As Integer, textContent As String)

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

textContent
String

新文字圖文框的內容。

適用於

AddContent(Int32, MarkupString)

附加代表標記內容的框架。

public:
 void AddContent(int sequence, Microsoft::AspNetCore::Components::MarkupString markupContent);
public void AddContent (int sequence, Microsoft.AspNetCore.Components.MarkupString markupContent);
member this.AddContent : int * Microsoft.AspNetCore.Components.MarkupString -> unit
Public Sub AddContent (sequence As Integer, markupContent As MarkupString)

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

markupContent
MarkupString

新標記框架的內容。

適用於

AddContent(Int32, RenderFragment)

附加代表任意內容片段的畫面。

public:
 void AddContent(int sequence, Microsoft::AspNetCore::Components::RenderFragment ^ fragment);
public void AddContent (int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment);
public void AddContent (int sequence, Microsoft.AspNetCore.Components.RenderFragment? fragment);
member this.AddContent : int * Microsoft.AspNetCore.Components.RenderFragment -> unit
Public Sub AddContent (sequence As Integer, fragment As RenderFragment)

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

fragment
RenderFragment

要附加的內容。

適用於

AddContent<TValue>(Int32, RenderFragment<TValue>, TValue)

附加代表任意內容片段的畫面。

public:
generic <typename TValue>
 void AddContent(int sequence, Microsoft::AspNetCore::Components::RenderFragment<TValue> ^ fragment, TValue value);
public void AddContent<TValue> (int sequence, Microsoft.AspNetCore.Components.RenderFragment<TValue> fragment, TValue value);
public void AddContent<TValue> (int sequence, Microsoft.AspNetCore.Components.RenderFragment<TValue>? fragment, TValue value);
member this.AddContent : int * Microsoft.AspNetCore.Components.RenderFragment<'Value> * 'Value -> unit
Public Sub AddContent(Of TValue) (sequence As Integer, fragment As RenderFragment(Of TValue), value As TValue)

類型參數

TValue

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

fragment
RenderFragment<TValue>

要附加的內容。

value
TValue

所使用的 fragment 值。

適用於