RenderTreeBuilder.SetAttributeValue(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.