RenderTreeBuilder.SetAttributeValue(Int32, Object) Method

Definition

Replaces the attribute value of an existing attribute frame at the specified index. This is used to update attribute values in-place after frames have been appended, for example when wrapping RenderFragment delegates during serialization.

public void SetAttributeValue(int frameIndex, object? value);
member this.SetAttributeValue : int * obj -> unit
Public Sub SetAttributeValue (frameIndex As Integer, value As Object)

Parameters

frameIndex
Int32

The zero-based index of the attribute frame whose value should be replaced.

value
Object

The new attribute value.

Exceptions

Thrown when frameIndex is outside the range of appended frames.

Thrown when the frame at frameIndex is not of type Attribute.

Applies to